12

我曾经jekyll --server在 localhost 测试我的网站。但是有几行输入,像这样:

 ___________________________________________________________________________
 | Maruku tells you:
 +---------------------------------------------------------------------------
 | String finished while reading (break on []) already read: "$ git init"
 | ---------------------------------------------------------------------------
 +---------------------------------------------------------------------------
 !/usr/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maru/errors_management.rb:49:in `maruku_error'
 !/usr/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:402:in `read_simple'
 !/usr/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:521:in `read_inline_code'
 !/usr/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/parse_span_better.rb:89:in `read_span'
 !/usr/lib/ruby/gems/1.8/gems/maruku-0.6.0/lib/maruku/input/    parse_span_better.rb:46:in    `parse_span_better'
 \___________________________________________________________________________
 ___________________________________________________________________________
 | Maruku tells you:
 +---------------------------------------------------------------------------
 | Could not find ref_id = "url" for md_link(["url"],"url")
 | Available refs are []
 +---------------------------------------------------------------------------
 Not creating a link for ref_id = "url".

我不知道哪里错了,我应该修复哪个文件?该网站仍然可以工作。

4

2 回答 2

10

问题很可能是您的代码中有此问题:

Blah blah [url] blah blah.

如果要保留方括号,请将它们编码如下:

Blah blah \[url\] blah blah.

更多信息:http: //daringfireball.net/projects/markdown/syntax#backslash

于 2012-07-27T08:33:51.527 回答
1

我遇到了这个问题,原因是 Markdown 文件是从 GitHub README.md 复制的,其中包含一些GitHub 风格的 Markdown

```JavaScript
var foo = 'bar';
```

这在 GitHub README.md 文件中运行良好,但不适用于 Jekyll 中的 Maruku,这意味着在使用GitHub Pages托管站点时它不起作用。

于 2012-11-01T04:48:19.887 回答