mirror of
https://github.com/Redocly/redoc.git
synced 2025-06-01 19:53:08 +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';
|
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({
|
marked.setOptions({
|
||||||
renderer: new marked.Renderer(),
|
renderer: new marked.Renderer(),
|
||||||
gfm: true,
|
gfm: true,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user