@quartz-community/ox-hugo
v0.1.0
Published
Ox-Hugo flavoured markdown transformer plugin for Quartz
Downloads
58,471
Readme
@quartz-community/ox-hugo
Transforms ox-hugo exported markdown to be compatible with Quartz, handling relref links, Hugo shortcodes, figure tags, and org-mode LaTeX.
Installation
npx quartz plugin add github:quartz-community/ox-hugoUsage
plugins:
- source: github:quartz-community/ox-hugo
enabled: trueFor advanced use cases, you can override in TypeScript:
import * as ExternalPlugin from "./.quartz/plugins";
ExternalPlugin.OxHugoFlavouredMarkdown({
wikilinks: true,
removePredefinedAnchor: true,
});Configuration
| Option | Type | Default | Description |
| ------------------------ | --------- | ------- | ---------------------------------------------------- |
| wikilinks | boolean | true | Whether to parse wikilinks. |
| removePredefinedAnchor | boolean | true | Whether to remove predefined anchors. |
| removeHugoShortcode | boolean | true | Whether to remove Hugo shortcodes. |
| replaceFigureWithMdImg | boolean | true | Whether to replace figure tags with markdown images. |
| replaceOrgLatex | boolean | true | Whether to replace org-mode LaTeX. |
Documentation
See the Quartz documentation for more information.
License
MIT
