mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-30 08:14:05 -06:00
Formatting
This commit is contained in:
parent
35069bbe24
commit
e73f28afdb
@ -32,7 +32,7 @@ export const ObsidianBlockReference: QuartzParser<Partial<Options>> = (userOpts)
|
|||||||
htmlPlugins(tree, file) {
|
htmlPlugins(tree, file) {
|
||||||
const inlineTagTypes = new Set(["p", "li"])
|
const inlineTagTypes = new Set(["p", "li"])
|
||||||
const blockTagTypes = new Set(["blockquote"])
|
const blockTagTypes = new Set(["blockquote"])
|
||||||
if (opts.enabled) {
|
if (opts.enabled && tree !== undefined) {
|
||||||
return () => {
|
return () => {
|
||||||
file.data.blocks = {}
|
file.data.blocks = {}
|
||||||
|
|
||||||
|
|||||||
@ -36,12 +36,7 @@ export const ObsidianComments: QuartzParser<Partial<Options>> = (userOpts) => {
|
|||||||
markdownPlugins(tree, file) {
|
markdownPlugins(tree, file) {
|
||||||
return [new RegExp(""), ""] as [RegExp, string | ReplaceFunction]
|
return [new RegExp(""), ""] as [RegExp, string | ReplaceFunction]
|
||||||
},
|
},
|
||||||
htmlPlugins(tree, file) {
|
htmlPlugins() {
|
||||||
if (opts.enabled) {
|
|
||||||
return () => {
|
|
||||||
visit(tree, "element", (node) => {})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return {} as Pluggable
|
return {} as Pluggable
|
||||||
},
|
},
|
||||||
externalResources() {
|
externalResources() {
|
||||||
|
|||||||
@ -30,8 +30,8 @@ export const ObsidianYouTube: QuartzParser<Partial<Options>> = (userOpts) => {
|
|||||||
markdownPlugins(_file, _tree) {
|
markdownPlugins(_file, _tree) {
|
||||||
return [new RegExp(""), ""] as [RegExp, string | ReplaceFunction]
|
return [new RegExp(""), ""] as [RegExp, string | ReplaceFunction]
|
||||||
},
|
},
|
||||||
htmlPlugins(tree, _file) {
|
htmlPlugins(tree) {
|
||||||
if (opts.enabled) {
|
if (opts.enabled && tree !== undefined) {
|
||||||
return () => {
|
return () => {
|
||||||
visit(tree, "element", (node) => {
|
visit(tree, "element", (node) => {
|
||||||
if (node.tagName === "img" && typeof node.properties.src === "string") {
|
if (node.tagName === "img" && typeof node.properties.src === "string") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user