mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-30 16:24:06 -06:00
Parser skeleton
This commit is contained in:
parent
dd062107c4
commit
b07aaeab75
@ -153,6 +153,24 @@ export const CommonMarkFlavoredMarkdown: QuartzTransformerPlugin<Partial<CommonM
|
|||||||
const opts = { ...defaultCommonMarkOptions, ...userOpts }
|
const opts = { ...defaultCommonMarkOptions, ...userOpts }
|
||||||
return {
|
return {
|
||||||
name: "CommonMarkFlavoredMarkdown",
|
name: "CommonMarkFlavoredMarkdown",
|
||||||
|
textTransform(ctx, src) {
|
||||||
|
return src
|
||||||
|
},
|
||||||
|
markdownPlugins(ctx) {
|
||||||
|
const plugins: PluggableList = []
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
htmlPlugins() {
|
||||||
|
const plugins: PluggableList = [rehypeRaw]
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
externalResources() {
|
||||||
|
const js: JSResource[] = []
|
||||||
|
|
||||||
|
return { js }
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,6 +180,24 @@ export const CustomFlavoredMarkdown: QuartzTransformerPlugin<Partial<CustomOptio
|
|||||||
const opts = { ...defaultCustomOptions, ...userOpts }
|
const opts = { ...defaultCustomOptions, ...userOpts }
|
||||||
return {
|
return {
|
||||||
name: "CustomFlavoredMarkdown",
|
name: "CustomFlavoredMarkdown",
|
||||||
|
textTransform(ctx, src) {
|
||||||
|
return src
|
||||||
|
},
|
||||||
|
markdownPlugins(ctx) {
|
||||||
|
const plugins: PluggableList = []
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
htmlPlugins() {
|
||||||
|
const plugins: PluggableList = [rehypeRaw]
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
externalResources() {
|
||||||
|
const js: JSResource[] = []
|
||||||
|
|
||||||
|
return { js }
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,6 +207,24 @@ export const GitHubFlavoredMarkdown: QuartzTransformerPlugin<Partial<GitHubOptio
|
|||||||
const opts = { ...defaultGitHubOptions, ...userOpts }
|
const opts = { ...defaultGitHubOptions, ...userOpts }
|
||||||
return {
|
return {
|
||||||
name: "GitHubFlavoredMarkdown",
|
name: "GitHubFlavoredMarkdown",
|
||||||
|
textTransform(ctx, src) {
|
||||||
|
return src
|
||||||
|
},
|
||||||
|
markdownPlugins(ctx) {
|
||||||
|
const plugins: PluggableList = []
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
htmlPlugins() {
|
||||||
|
const plugins: PluggableList = [rehypeRaw]
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
externalResources() {
|
||||||
|
const js: JSResource[] = []
|
||||||
|
|
||||||
|
return { js }
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,6 +293,24 @@ export const OxHugoFlavoredMarkdown: QuartzTransformerPlugin<Partial<OxHugoOptio
|
|||||||
const opts = { ...defaultOxHugoOptions, ...userOpts }
|
const opts = { ...defaultOxHugoOptions, ...userOpts }
|
||||||
return {
|
return {
|
||||||
name: "OxHugoFlavoredMarkdown",
|
name: "OxHugoFlavoredMarkdown",
|
||||||
|
textTransform(ctx, src) {
|
||||||
|
return src
|
||||||
|
},
|
||||||
|
markdownPlugins(ctx) {
|
||||||
|
const plugins: PluggableList = []
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
htmlPlugins() {
|
||||||
|
const plugins: PluggableList = [rehypeRaw]
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
externalResources() {
|
||||||
|
const js: JSResource[] = []
|
||||||
|
|
||||||
|
return { js }
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,5 +320,23 @@ export const RoamFlavoredMarkdown: QuartzTransformerPlugin<Partial<RoamOptions>
|
|||||||
const opts = { ...defaultRoamOptions, ...userOpts }
|
const opts = { ...defaultRoamOptions, ...userOpts }
|
||||||
return {
|
return {
|
||||||
name: "RoamFlavoredMarkdown",
|
name: "RoamFlavoredMarkdown",
|
||||||
|
textTransform(ctx, src) {
|
||||||
|
return src
|
||||||
|
},
|
||||||
|
markdownPlugins(ctx) {
|
||||||
|
const plugins: PluggableList = []
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
htmlPlugins() {
|
||||||
|
const plugins: PluggableList = [rehypeRaw]
|
||||||
|
|
||||||
|
return plugins
|
||||||
|
},
|
||||||
|
externalResources() {
|
||||||
|
const js: JSResource[] = []
|
||||||
|
|
||||||
|
return { js }
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user