hazirguo / hazirguo.github.com

This is my personal blog:
hazirguo.github.com
3 stars 0 forks source link

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

Open hazirguo opened 11 years ago

hazirguo commented 11 years ago

今天直接将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 commented 11 years ago

rdiscount和redcarpet有哪些差别啊?

blindFS commented 11 years ago

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