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