添加反引号代码块时的Octopress空白页

时间:2013-12-30 10:45:11

标签: windows-7 gem octopress rdiscount

我想知道为什么当我使用特定语言添加反引号代码块时,我会得到空白页?

_config.yml

markdown: rdiscount
rdiscount:
  extensions:
    - autolink
    - footnotes
    - smart
pygments: false # default python pygments have been replaced by pygments.rb

在我的帖子中如果我使用没有特定语言的反引号

```
var foo = "Hello";
```

正常工作,页面正常显示

但是当我使用特定语言ex.js,javascript,java

的反引号时
```js
var foo = "Hello";
```

这是空白页面,没有错误。

[2013-12-30 17:24:46] INFO  WEBrick 1.3.1
[2013-12-30 17:24:46] INFO  ruby 1.9.3 (2013-11-22) [i386-mingw32]
[2013-12-30 17:24:46] INFO  WEBrick::HTTPServer#start: pid=7288 port=4000
Auto-regenerating enabled: source -> public
[2013-12-30 17:24:46] regeneration: 103 files changed
>>> Change detected at 17:24:47 to: screen.scss
identical public/stylesheets/screen.css

Dear developers making use of FSSM in your projects,
FSSM is essentially dead at this point. Further development will
be taking place in the new shared guard/listen project. Please
let us know if you need help transitioning! ^_^b
- Travis Tilley

>>> Compass is polling for changes. Press Ctrl-C to Stop.
127.0.0.1 - - [30/Dec/2013 17:25:06] "GET / HTTP/1.1" 200 - 0.8490
127.0.0.1 - - [30/Dec/2013 17:25:41] "GET / HTTP/1.1" 200 - 0.0040

我认为它在Ubuntu上工作正常但在Windows 7上不起作用 有什么建议吗? 我的机器

  • Windows 7 32位
  • Ruby 1.9.3 p484
  • rdiscount 2.0.7.3

1 个答案:

答案 0 :(得分:0)

只有最新版本的Discount / RDiscount(2.1.7)支持带语言说明符的受防护代码块。确保您的RDiscount gem是> = 2.1.7。