The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 29 lines 1.5 kB view raw view rendered
1--- 2title: OxHugoFlavoredMarkdown 3tags: 4 - plugin/transformer 5--- 6 7This plugin provides support for [ox-hugo](https://github.com/kaushalmodi/ox-hugo) compatibility. See [[OxHugo compatibility]] for more information. 8 9> [!note] 10> For information on how to add, remove or configure plugins, see the [[configuration#Plugins|Configuration]] page. 11 12This plugin accepts the following configuration options: 13 14- `wikilinks`: If `true` (default), converts Hugo `{{ relref }}` shortcodes to Quartz [[wikilinks]]. 15- `removePredefinedAnchor`: If `true` (default), strips predefined anchors from headings. 16- `removeHugoShortcode`: If `true` (default), removes Hugo shortcode syntax (`{{}}`) from the content. 17- `replaceFigureWithMdImg`: If `true` (default), replaces `<figure/>` with `![]()`. 18- `replaceOrgLatex`: If `true` (default), converts Org-mode [[features/Latex|Latex]] fragments to Quartz-compatible LaTeX wrapped in `$` (for inline) and `$$` (for block equations). 19 20> [!warning] 21> While you can use this together with [[ObsidianFlavoredMarkdown]], it's not recommended because it might mutate the file in unexpected ways. Use with caution. 22> 23> If you use `toml` frontmatter, make sure to configure the [[Frontmatter]] plugin accordingly. See [[OxHugo compatibility]] for an example. 24 25## API 26 27- Category: Transformer 28- Function name: `Plugin.OxHugoFlavoredMarkdown()`. 29- Source: [`quartz/plugins/transformers/oxhugofm.ts`](https://github.com/jackyzha0/quartz/blob/v4/quartz/plugins/transformers/oxhugofm.ts).