Jacky Zhao
2023-11-15 2de48b267a8f2d6ed0461d2febc266559c2d8d47
fix: set htmlAst after walking tree in ofm (closes #589)
1 files modified
3 ■■■■ changed files
quartz/plugins/transformers/ofm.ts 3 ●●●● patch | view | raw | blame | history
quartz/plugins/transformers/ofm.ts
@@ -436,7 +436,6 @@
          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)) {
@@ -478,6 +477,8 @@
                }
              }
            })
            file.data.htmlAst = tree
          }
        })
      }