Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown的使用有问题 #19

Closed
smadey opened this issue Dec 4, 2013 · 7 comments
Closed

markdown的使用有问题 #19

smadey opened this issue Dec 4, 2013 · 7 comments

Comments

@smadey
Copy link

smadey commented Dec 4, 2013

markdown的写法有问题了,应该是 "node-markdown": "*" ,然后 var markdown = require('markdown').markdown 为 var markdown = require('node-markdown').Markdown、markdown.toHTML("string") 为 markdown("string")

@nswbmw
Copy link
Owner

nswbmw commented Dec 5, 2013

node-markdownmarkdown 不是一个东西。。

@smadey
Copy link
Author

smadey commented Dec 5, 2013

我使用 "markdown": "*" ,然后 npm install 报错误。。
看命令行加载地址是: https://registry.npmjs.org/markdown
直接在网页上打开说 该网站的安全证书不受信任!
不过 http://registry.npmjs.org/markdown 倒是可以。。

@nswbmw
Copy link
Owner

nswbmw commented Dec 5, 2013

额,这应该是你电脑的问题了把?

@smadey
Copy link
Author

smadey commented Dec 5, 2013

家里电脑这样,现在在公司打开也是这样,不过没用npm install装
在package.json配置和在目录中使用 npm install markdown是一样的么?

@nswbmw
Copy link
Owner

nswbmw commented Dec 5, 2013

一样

@smadey
Copy link
Author

smadey commented Dec 5, 2013

恩,刚试了下,加载的都是 http://registry.npmjs.org/markdown
但是之前在家里加载的是 https://registry.npmjs.org/markdown
这个是为啥呢?

@nswbmw
Copy link
Owner

nswbmw commented Dec 5, 2013

这个我也不懂 =.=

@nswbmw nswbmw closed this as completed Dec 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants