From 6be67940f558a31fa5ccbc4f4bcae90ade13c3f0 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 7 Apr 2016 18:44:41 +0300 Subject: [PATCH 1/5] Fix markdown headings --- lib/utils/pipes.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils/pipes.js b/lib/utils/pipes.js index 80ac62e1..917f2279 100644 --- a/lib/utils/pipes.js +++ b/lib/utils/pipes.js @@ -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, From 06e9dd3a0f4fe36ef019c29c08a9364b84567102 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 7 Apr 2016 20:59:59 +0300 Subject: [PATCH 2/5] Fix nested schemas styling (fixes #32) --- lib/components/JsonSchema/json-schema.html | 5 +++-- lib/components/JsonSchema/json-schema.js | 4 ++-- lib/components/JsonSchema/json-schema.scss | 19 ++++++++++++++++--- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lib/components/JsonSchema/json-schema.html b/lib/components/JsonSchema/json-schema.html index bd3155ee..d1377c59 100644 --- a/lib/components/JsonSchema/json-schema.html +++ b/lib/components/JsonSchema/json-schema.html @@ -9,7 +9,7 @@ - +
{{_displayType}}