对于我的slate项目,我有如下标记:
---
title: API Reference
language_tabs:
- http
- javascript
search: true
---
# Getting Started
## Logout
# Call Management
## Call States
```javascript{
}
## Call Notification
## Caller ID Called Number
## Call Information During Call我使用middleman来服务一个站点:bundle exec middleman server。但是,最后一个小节标题没有被正确地解释为一个h2标记(屏幕快照)。如果我通过rake build构建它,结果是一样的。
,但是,如果我把这个标记放在像 http://stackedit.io这样的其他解释器上,那就很好了。
因此,我怀疑我的标记解释器(红宝石红地毯)不知怎么坏了。我在控制台上没有收到任何警告/错误消息。我试过不同版本的红地毯。解释的HTML也是错误的,尽管错误是不同的。我想红宝石和红地毯的结合会成功吗?
这是我的config.rb
# Markdown
set :markdown_engine, :redcarpet
set :markdown,
fenced_code_blocks: true,
smartypants: true,
disable_indented_code_blocks: true,
prettify: true,
tables: true,
with_toc_data: true,
no_intra_emphasis: true有人能说出可能的原因吗?或者如何恢复?

发布于 2015-10-10 01:32:44
更新到最新版本的(3.3.3) of RedCarpet解决了我的问题。
更新1
嗯,它仍然存在问题:我甚至不能更改Markdown文件中的一个字母。否则,生成的HTML标记再次出错.
更新2
终于解决了。将RedCarpet转换为克拉姆顿解决了这一问题。
我的config.rb
# set :markdown_engine, :redcarpet
set :markdown_engine, :kramdown
set :markdown,
fenced_code_blocks: true,
smartypants: true,
disable_indented_code_blocks: true,
prettify: true,
tables: true,
with_toc_data: true,
no_intra_emphasis: truehttps://stackoverflow.com/questions/32734286
复制相似问题