jekyll中使用方括号引起的问题

今天看了一下11月30日发布的文章,发现布局配置没起作用,网页就是文章的内容.

在本地运行Jekyll的Server测试时出现以下报错

 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could not find ref_id = "" for md_link([],"")
| Available refs are []
+---------------------------------------------------------------------------
!/Library/Ruby/Gems/1.8/gems/maruku-0.6.1/lib/maruku/errors_management.rb:49:in `maruku_error'
!/Library/Ruby/Gems/1.8/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:716:in `to_html_link'
!/Library/Ruby/Gems/1.8/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:970:in `send'
!/Library/Ruby/Gems/1.8/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:970:in `array_to_html'
!/Library/Ruby/Gems/1.8/gems/maruku-0.6.1/lib/maruku/output/to_html.rb:961:in `each'
\___________________________________________________________________________

经过各种测试,最后把问题定位到了正文中的方括号:[],将所有方括号加上\(变成\[\])转义后,问题成功解决

Published: December 04 2012