From 099ebad06b51feabcdae647da171def359f6cf1f Mon Sep 17 00:00:00 2001 From: Nicholas Browning Date: Sat, 26 Oct 2019 16:05:12 -0400 Subject: [PATCH] Export: uses markdown preview dom. Supports diagrams --- browser/components/MarkdownPreview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/components/MarkdownPreview.js b/browser/components/MarkdownPreview.js index 7c88f562..cb477efd 100755 --- a/browser/components/MarkdownPreview.js +++ b/browser/components/MarkdownPreview.js @@ -348,7 +348,7 @@ export default class MarkdownPreview extends React.Component { allowCustomCSS, customCSS }) - let body = this.markdown.render(noteContent) + let body = this.refs.root.contentWindow.document.body.innerHTML body = attachmentManagement.fixLocalURLS( body, this.props.storagePath