Commit 2d6d5086 authored by Christian Hergert's avatar Christian Hergert

html-preview: fix generation of markdown preview

parent f262d125
Pipeline #192642 failed with stage
in 60 minutes and 1 second
...@@ -435,7 +435,7 @@ class HtmlPreviewPage(Ide.Page): ...@@ -435,7 +435,7 @@ class HtmlPreviewPage(Ide.Page):
def get_markdown(self, text): def get_markdown(self, text):
params = (HtmlPreviewData.MARKDOWN_CSS.get_data().decode('UTF-8'), params = (HtmlPreviewData.MARKDOWN_CSS.get_data().decode('UTF-8'),
html.escape(text), html.escape(text).replace('\n', '\\n'),
HtmlPreviewData.MARKED_JS.get_data().decode('UTF-8'), HtmlPreviewData.MARKED_JS.get_data().decode('UTF-8'),
HtmlPreviewData.MARKDOWN_VIEW_JS.get_data().decode('UTF-8')) HtmlPreviewData.MARKDOWN_VIEW_JS.get_data().decode('UTF-8'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment