Skip to content

Commit

Permalink
fix: bug when logseq hidden properties prepend
Browse files Browse the repository at this point in the history
 char before ```
  • Loading branch information
stdword committed Feb 7, 2024
1 parent 06af71b commit 63d275c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class Template implements ITemplate {
PropertiesUtils.deleteProperty(b as BlockEntity, PropertiesUtils.idProperty)

// unwrap triple back-ticks block: special case for long templates
const [ start, end ] = [ /^```.*?\n/u, /\n```$/u ]
const [ start, end ] = [ /^\n?```.*?\n/u, /\n```$/u ]
const matchStart = b.content.match(start)
const matchEnd = b.content.match(end)
if (matchStart && matchEnd)
Expand Down

0 comments on commit 63d275c

Please sign in to comment.