Skip to content

Commit 5391e35

Browse files
committed
fix: remove empty \placeholder{}s
Fixes #35
1 parent 5220dca commit 5391e35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/popup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export class PopupManager {
267267
if (matchLines !== null && matchLines.groups !== undefined) {
268268
latex = `\\begin{gather*}${matchLines.groups.content}\\end{gather*}`
269269
}
270+
latex = latex.replaceAll('\\placeholder{}', '') // remove empty placeholders
270271
if (this.delim !== '$' && logseq.settings?.preferMultiline) {
271272
latex = latex
272273
.replaceAll('\\\\ ', '\\\\\n') // add new line after `\\`

0 commit comments

Comments
 (0)