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

jekyll 中markdown语法与GFM的区别 #1

Open
hazirguo opened this issue Sep 15, 2013 · 2 comments
Open

jekyll 中markdown语法与GFM的区别 #1

hazirguo opened this issue Sep 15, 2013 · 2 comments

Comments

@hazirguo
Copy link
Owner

今天直接将issue中写的一篇博客改改格式复制到 _post 文件夹下,作为一篇文章发布了,但博客中迟迟没有更新这篇文章;pull 到本地调试,出现下面的错误:

___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could not find ref_id = "" for md_link([],"")
| Available refs are []
+---------------------------------------------------------------------------
!/usr/lib/ruby/vendor_ruby/maruku/errors_management.rb:49:in `maruku_error'
!/usr/lib/ruby/vendor_ruby/maruku/output/to_html.rb:716:in `to_html_link'
!/usr/lib/ruby/vendor_ruby/maruku/output/to_html.rb:970:in `block in array_to_html'
!/usr/lib/ruby/vendor_ruby/maruku/output/to_html.rb:961:in `each'
!/usr/lib/ruby/vendor_ruby/maruku/output/to_html.rb:961:in `array_to_html'
\___________________________________________________________________________
Not creating a link for ref_id = ""

原因在于 issue 中我使用的是GFM 的语法,而 jekyll 使用的差不多是标准的 Markdown 语法,我有个地方使用中括号 [] 却没有转义,应该表示成这样 \[\],同样对于其它的特殊字符,如 *、 - 、>、\等等,当作为其本身符号来用时,记得使用转义!

@blindFS
Copy link

blindFS commented Oct 24, 2013

rdiscount和redcarpet有哪些差别啊?

@blindFS
Copy link

blindFS commented Oct 24, 2013

好像redcarpet的table有点问题...

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