1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00
Right now there are only two export types that are using a special
output formatter, pdf and html. Both of these formatters currently populate the
`/html/head/base` portion of the associated html document with the name
of the target directory for the file that the user is exporting.

In order for internal links within the exported document to work
correctly, the value of base must also include the filename. This fix
removes the call to `path.dirname`, which gets rid of the necessary
filename.
This commit is contained in:
sirrah23
2019-07-29 00:20:56 -04:00
committed by Junyoung Choi
parent f09297f406
commit ff9789b5a7

View File

@@ -43,7 +43,7 @@ function exportNote (nodeKey, storageKey, noteContent, targetPath, outputFormatt
) )
if (outputFormatter) { if (outputFormatter) {
exportedData = outputFormatter(exportedData, exportTasks, path.dirname(targetPath)) exportedData = outputFormatter(exportedData, exportTasks, targetPath)
} else { } else {
exportedData = Promise.resolve(exportedData) exportedData = Promise.resolve(exportedData)
} }