我有一个用于我的slate
项目的以下markdown:
---
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
构建它,结果是一样的。
但是,如果我将这个markdown放在其他解释器上,比如http://stackedit.io,那就没问题了。
所以我怀疑我的markdown解释器(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
有人能告诉我可能的原因是什么吗?或者如何恢复?
therubyracer
gem,因为它会导致一些卡顿问题(并安装nodejs
包代替)。 - Alexey Shein