mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 22:10:24 +08:00
Merge 0968966f01
into b75895cdd1
This commit is contained in:
commit
6b0b713c80
@ -194,7 +194,7 @@ const noticePandocNotFound = win => {
|
|||||||
|
|
||||||
const openPandocFile = async (windowId, pathname) => {
|
const openPandocFile = async (windowId, pathname) => {
|
||||||
try {
|
try {
|
||||||
const converter = pandoc(pathname, 'markdown')
|
const converter = pandoc(pathname, 'gfm')
|
||||||
const data = await converter()
|
const data = await converter()
|
||||||
ipcMain.emit('app-open-markdown-by-id', windowId, data)
|
ipcMain.emit('app-open-markdown-by-id', windowId, data)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user