windows-7 - 添加反引号代码块时 Octopress 空白页

标签 windows-7 rubygems 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

最佳答案

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

关于windows-7 - 添加反引号代码块时 Octopress 空白页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20837931/

相关文章:

c# - 如何使用用户权限而不是事件权限启动程序

c++ - NetBeans 7 c++ 远程开发主机包含路径

amazon-web-services - 在 Windows/Cygwin 上配置 AWS SSH key

ruby - RVM 警告! PATH 设置不正确

powershell - 如何读取硬盘 S.M.A.R.T.属性?

ruby - 卸载所有不在指定的 Gemfile.lock 文件列表中的 gem

ruby-on-rails - RVM 查找系统 gems 的可执行文件

ruby - 生成博客时 octopress image_tag 插件的语法错误

heroku - 重定向 URL 以在 Sinatra 中添加尾部斜杠