Jacky Zhao
2023-08-17 0c199975f2d469ecdfd7efcf2ddd16ffa1dc492b
content/advanced/making plugins.md
@@ -7,7 +7,7 @@
Quartz's plugins are a series of transformations over content. This is illustrated in the diagram of the processing pipeline below:
![[quartz-transform-pipeline.png]]
![[quartz transform pipeline.png]]
All plugins are defined as a function that takes in a single parameter for options `type OptionType = object | undefined` and return an object that corresponds to the type of plugin it is.
@@ -153,9 +153,9 @@
            }
          })
        // remove all links (replace with just the link content)
        // match by 'type' field on an mdast node
        // https://github.com/syntax-tree/mdast#link in this example
         // remove all links (replace with just the link content)
         // match by 'type' field on an mdast node
         // https://github.com/syntax-tree/mdast#link in this example
          visit(tree, "link", (link: Link) => {
            return {
              type: "paragraph"