Skip to content

Commit

Permalink
fix: set htmlAst after walking tree in ofm (closes jackyzha0#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Nov 15, 2023
1 parent 76f2664 commit 2de48b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quartz/plugins/transformers/ofm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
const blockTagTypes = new Set(["blockquote"])
return (tree, file) => {
file.data.blocks = {}
file.data.htmlAst = tree

visit(tree, "element", (node, index, parent) => {
if (blockTagTypes.has(node.tagName)) {
Expand Down Expand Up @@ -478,6 +477,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
}
}
})

file.data.htmlAst = tree
}
})
}
Expand Down

0 comments on commit 2de48b2

Please sign in to comment.