Joy*_*Joy 5 ruby rubygems redcarpet slate
我的项目有以下降价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
Run Code Online (Sandbox Code Playgroud)
我middleman用来服务一个网站:bundle exec middleman server.但是,最后一个子标题不能正确解释为h2标记(屏幕截图).如果我构建它,结果是一样的rake build.
但是,如果我把这个降价放在像http://stackedit.io这样的其他翻译上,那很好.
所以我怀疑我的降价解释器(Ruby redcarpet)以某种方式被破坏了.我没有在控制台上收到任何警告/错误消息.我尝试了不同版本的redcarpet.解释的HTML也是错误的,尽管错误是不同的.我想Ruby和Redcarpet的某些组合会成功吗?
这是我的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
Run Code Online (Sandbox Code Playgroud)
谁能说出可能的原因是什么?或者如何恢复?
更新到RedCarpet 的最新版本(3.3.3)解决了我的问题。
好吧,它仍然有问题:我无法更改 Markdown 文件中的任何一个字母。否则,生成的 HTML 标记会再次搞砸......
终于解决了。将RedCarpet切换到kramdown解决了这个问题。
我的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: true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
196 次 |
| 最近记录: |