mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
Fix markdown headings
This commit is contained in:
parent
b8206e2994
commit
6be67940f5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user