mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-30 16:24:06 -06:00
Split up parsers
This commit is contained in:
parent
68e3a5984f
commit
15a74bfb39
@ -1,4 +1,39 @@
|
|||||||
import { QuartzTransformerPlugin } from "../types"
|
import { QuartzTransformerPlugin } from "../types"
|
||||||
|
import {
|
||||||
|
Root,
|
||||||
|
Html,
|
||||||
|
BlockContent,
|
||||||
|
DefinitionContent,
|
||||||
|
Paragraph,
|
||||||
|
Code,
|
||||||
|
Text,
|
||||||
|
Link,
|
||||||
|
Parent,
|
||||||
|
} from "mdast"
|
||||||
|
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 { SKIP, visit } from "unist-util-visit"
|
||||||
|
import path from "path"
|
||||||
|
import { splitAnchor } from "../../util/path"
|
||||||
|
import { JSResource } from "../../util/resources"
|
||||||
|
// @ts-ignore
|
||||||
|
import calloutScript from "../../components/scripts/callout.inline.ts"
|
||||||
|
// @ts-ignore
|
||||||
|
import checkboxScript from "../../components/scripts/checkbox.inline.ts"
|
||||||
|
import { FilePath, pathToRoot, slugTag, slugifyFilePath } from "../../util/path"
|
||||||
|
import { toHast } from "mdast-util-to-hast"
|
||||||
|
import { toHtml } from "hast-util-to-html"
|
||||||
|
import { PhrasingContent } from "mdast-util-find-and-replace/lib"
|
||||||
|
import { capitalize } from "../../util/lang"
|
||||||
|
import { PluggableList } from "unified"
|
||||||
|
import { Node } from "unist"
|
||||||
|
import { VFile } from "vfile"
|
||||||
|
import { BuildVisitor } from "unist-util-visit"
|
||||||
|
import remarkGfm from "remark-gfm"
|
||||||
|
import smartypants from "remark-smartypants"
|
||||||
|
import rehypeSlug from "rehype-slug"
|
||||||
|
import rehypeAutolinkHeadings from "rehype-autolink-headings"
|
||||||
|
|
||||||
export interface CommonMarkOptions {
|
export interface CommonMarkOptions {
|
||||||
option1: Boolean
|
option1: Boolean
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user