I have the following markdown for my slate project:
--- title: API Reference language_tabs: - http - javascript search: true ---
And I use middleman to serve the site: bundle exec middleman server . However, the last title of the subsection is not interpreted correctly as the h2 tag (screenshot). The result will be the same if I build it through rake build .
However, if I put this markdown on other interpreters, such as http://stackedit.io , this is normal.
Therefore, I suspect that my markdown interpreter ( Ruby redcarpet ) is somehow broken. I did not receive an error / error message on the console. I tried different versions of redcarpet. The interpreted HTML is also erroneous, although the errors are different. I believe some combinations of Ruby and Redcarpet will do this?
Here is my 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
Can anyone tell what the probable cause is? Or how to recover?

source share