We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e864645 + 9034b3a commit a193ba3Copy full SHA for a193ba3
browser/components/MarkdownPreview.js
@@ -285,7 +285,7 @@ export default class MarkdownPreview extends React.Component {
285
286
_.forEach(this.refs.root.contentWindow.document.querySelectorAll('img'), (el) => {
287
if (!/\/:storage/.test(el.src)) return
288
- el.src = el.src.replace('/:storage', path.join(storagePath, 'images'))
+ el.src = `file:///${path.join(storagePath, 'images', path.basename(el.src))}`
289
})
290
291
codeBlockTheme = consts.THEMES.some((_theme) => _theme === codeBlockTheme)
0 commit comments