1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Merge branch 'master' into blinking-markdown-crunch-fix

This commit is contained in:
Max Buranbaev
2018-06-27 14:21:34 +00:00
committed by GitHub
4 changed files with 22 additions and 13 deletions

View File

@@ -21,12 +21,14 @@ const attachmentManagement = require('../main/lib/dataApi/attachmentManagement')
const { app } = remote
const path = require('path')
const fileUrl = require('file-url')
const dialog = remote.dialog
const markdownStyle = require('!!css!stylus?sourceMap!./markdown.styl')[0][1]
const appPath =
'file://' +
(process.env.NODE_ENV === 'production' ? app.getAppPath() : path.resolve())
const appPath = fileUrl(process.env.NODE_ENV === 'production'
? app.getAppPath()
: path.resolve())
const CSS_FILES = [
`${appPath}/node_modules/katex/dist/katex.min.css`,
`${appPath}/node_modules/codemirror/lib/codemirror.css`