Fix markdown headings

This commit is contained in:
Roman Hotsiy 2016-04-07 18:44:41 +03:00
parent b8206e2994
commit 6be67940f5

View File

@ -31,6 +31,11 @@ import 'hint.css/hint.base.css!css';
import marked from 'marked';
// in gfm mode marked doesn't parse #Heading (without space after #) as heading
// https://github.com/chjj/marked/issues/642
marked.Lexer.rules.gfm.heading = marked.Lexer.rules.normal.heading;
marked.Lexer.rules.tables.heading = marked.Lexer.rules.normal.heading;
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,