Commented out Argdown implementation for now
This commit is contained in:
@@ -11,8 +11,8 @@ import {
|
||||
import { Element, Literal, Root as HtmlRoot } from "hast"
|
||||
import { ReplaceFunction, findAndReplace as mdastFindReplace } from "mdast-util-find-and-replace"
|
||||
import rehypeRaw from "rehype-raw"
|
||||
import { argdown } from "@argdown/core"
|
||||
import { remarkArgdownPlugin } from "@argdown/remark-plugin"
|
||||
// import { argdown } from "@argdown/core"
|
||||
// import { remarkArgdownPlugin } from "@argdown/remark-plugin"
|
||||
import { SKIP, visit } from "unist-util-visit"
|
||||
import path from "path"
|
||||
import { splitAnchor } from "../../util/path"
|
||||
@@ -36,7 +36,7 @@ export interface Options {
|
||||
wikilinks: boolean
|
||||
callouts: boolean
|
||||
mermaid: boolean
|
||||
argdown: boolean
|
||||
// argdown: boolean
|
||||
parseTags: boolean
|
||||
parseArrows: boolean
|
||||
parseBlockReferences: boolean
|
||||
@@ -53,7 +53,7 @@ const defaultOptions: Options = {
|
||||
wikilinks: true,
|
||||
callouts: true,
|
||||
mermaid: true,
|
||||
argdown: true,
|
||||
// argdown: true,
|
||||
parseTags: true,
|
||||
parseArrows: true,
|
||||
parseBlockReferences: true,
|
||||
@@ -542,11 +542,11 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
|
||||
})
|
||||
}
|
||||
|
||||
if (opts.argdown) {
|
||||
plugins.push(() => {
|
||||
return [remarkArgdownPlugin]
|
||||
})
|
||||
}
|
||||
// if (opts.argdown) {
|
||||
// plugins.push(() => {
|
||||
// return [remarkArgdownPlugin]
|
||||
// })
|
||||
// }
|
||||
|
||||
return plugins
|
||||
},
|
||||
@@ -753,9 +753,9 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
|
||||
})
|
||||
}
|
||||
|
||||
if (opts.argdown) {
|
||||
return [[remarkArgdownPlugin, { webComponent: { withoutHeader: true }}]]
|
||||
}
|
||||
// if (opts.argdown) {
|
||||
// return [[remarkArgdownPlugin, { webComponent: { withoutHeader: true }}]]
|
||||
// }
|
||||
|
||||
return plugins
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user