1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

Merge pull request #2171 from yamash723/fixbug-html-export

Fix search value for html export path
This commit is contained in:
Junyoung Choi (Sai)
2018-08-09 17:43:56 +09:00
committed by GitHub

View File

@@ -246,7 +246,12 @@ export default class MarkdownPreview extends React.Component {
const attachmentsAbsolutePaths = attachmentManagement.getAbsolutePathsOfAttachmentsInContent(noteContent, this.props.storagePath)
files.forEach((file) => {
file = file.replace('file://', '')
if (global.process.platform === 'win32') {
file = file.replace('file:///', '')
} else {
file = file.replace('file://', '')
}
exportTasks.push({
src: file,
dst: 'css'