From 3d7ab406740700e9e1a7e2365429ba166e5dae70 Mon Sep 17 00:00:00 2001 From: Kazumi Harada Date: Sun, 9 Jun 2019 17:35:57 +0900 Subject: [PATCH] [update] apply the method of fixLocalURLS before exporting to pdf --- browser/components/MarkdownPreview.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/components/MarkdownPreview.js b/browser/components/MarkdownPreview.js index 9d391125..0e9cfd76 100755 --- a/browser/components/MarkdownPreview.js +++ b/browser/components/MarkdownPreview.js @@ -345,6 +345,10 @@ export default class MarkdownPreview extends React.Component { customCSS ) let body = this.markdown.render(noteContent) + body = attachmentManagement.fixLocalURLS( + body, + this.props.storagePath + ) const files = [this.GetCodeThemeLink(codeBlockTheme), ...CSS_FILES] files.forEach(file => { if (global.process.platform === 'win32') {