mirror of
https://github.com/quartz-community/ox-hugo.git
synced 2026-07-22 02:50:26 +00:00
No description
| .github/workflows | ||
| dist | ||
| src | ||
| types | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
@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-hugo
Usage
plugins:
- source: github:quartz-community/ox-hugo
enabled: true
For 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