From de7e06cbd3817558b365632978e4c90b437df2ec Mon Sep 17 00:00:00 2001 From: Gnohz Gniy <0x00eeee@gmail.com> Date: Fri, 24 Feb 2023 20:29:56 +0800 Subject: [PATCH] Add --pdf-engine=context to Pandoc commands (#80) --- .../Sources/Editor/Controllers/EditorViewController+Pandoc.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MarkEditMac/Sources/Editor/Controllers/EditorViewController+Pandoc.swift b/MarkEditMac/Sources/Editor/Controllers/EditorViewController+Pandoc.swift index 76803b30..7d66cad9 100644 --- a/MarkEditMac/Sources/Editor/Controllers/EditorViewController+Pandoc.swift +++ b/MarkEditMac/Sources/Editor/Controllers/EditorViewController+Pandoc.swift @@ -15,6 +15,7 @@ extension EditorViewController { "pandoc", url.escapedFilePath, "-f gfm -t \(format)", + "--pdf-engine=context", "-s -o \(url.replacingPathExtension(format).escapedFilePath)", "&& open \(url.deletingLastPathComponent().escapedFilePath)", ].joined(separator: " ")