This plugin provides support for ox-hugo compatibility. See OxHugo compatibility for more information.
Note
For information on how to add, remove or configure plugins, see the Configuration page.
This plugin accepts the following configuration options:
wikilinks: Iftrue(default), converts Hugo{{< relref >}}links ([text]({{< relref "page" >}})) to regular Markdown links ([text](page)).removePredefinedAnchor: Iftrue(default), strips predefined anchors ({#id}) from headings.removeHugoShortcode: Iftrue(default), removes Hugo shortcode syntax ({{}}) from the content.replaceFigureWithMdImg: Iftrue(default), replaces<figure/>with![]().replaceOrgLatex: Iftrue(default), converts Org-mode Latex fragments to Quartz-compatible LaTeX wrapped in$(for inline) and$$(for block equations).
Warning
While you can use this together with ObsidianFlavoredMarkdown, it’s not recommended because it might mutate the file in unexpected ways. Use with caution.
If you use
tomlfrontmatter, make sure to setconfiguration.frontmatteraccordingly (see Frontmatter). See OxHugo compatibility for an example.
Default options
The default config has a disabled entry for this plugin. Set enabled: true to use it:
- source: "@quartz-community/ox-hugo"
enabled: true
options:
wikilinks: true
removePredefinedAnchor: true
removeHugoShortcode: true
replaceFigureWithMdImg: true
replaceOrgLatex: true
order: 91API
- Category: Transformer
- Function name:
ExternalPlugin.OxHugoFlavouredMarkdown()(British spelling). - Source:
quartz-community/ox-hugo - Install:
npx quartz plugin add @quartz-community/ox-hugo