fix(oxhugo): Do not discard embedded HTML (#2151)
In 'processors/parse.ts' the 'remarkRehype' plugin is used with
'allowDangerousHtml' enabled, but that needs to be combined with (e.g.)
'rehypeRaw' to have any effect on the output.
| | |
| | | import { QuartzTransformerPlugin } from "../types" |
| | | import rehypeRaw from "rehype-raw" |
| | | import { PluggableList } from "unified" |
| | | |
| | | export interface Options { |
| | | /** Replace {{ relref }} with quartz wikilinks []() */ |
| | |
| | | } |
| | | return src |
| | | }, |
| | | htmlPlugins() { |
| | | const plugins: PluggableList = [rehypeRaw] |
| | | return plugins |
| | | }, |
| | | } |
| | | } |