mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04: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) {
|
||||
const inlineTagTypes = new Set(["p", "li"])
|
||||
const blockTagTypes = new Set(["blockquote"])
|
||||
if (opts.enabled) {
|
||||
if (opts.enabled && tree !== undefined) {
|
||||
return () => {
|
||||
file.data.blocks = {}
|
||||
|
||||
|
||||
@ -36,12 +36,7 @@ export const ObsidianComments: QuartzParser<Partial<Options>> = (userOpts) => {
|
||||
markdownPlugins(tree, file) {
|
||||
return [new RegExp(""), ""] as [RegExp, string | ReplaceFunction]
|
||||
},
|
||||
htmlPlugins(tree, file) {
|
||||
if (opts.enabled) {
|
||||
return () => {
|
||||
visit(tree, "element", (node) => {})
|
||||
}
|
||||
}
|
||||
htmlPlugins() {
|
||||
return {} as Pluggable
|
||||
},
|
||||
externalResources() {
|
||||
|
||||
@ -30,8 +30,8 @@ export const ObsidianYouTube: QuartzParser<Partial<Options>> = (userOpts) => {
|
||||
markdownPlugins(_file, _tree) {
|
||||
return [new RegExp(""), ""] as [RegExp, string | ReplaceFunction]
|
||||
},
|
||||
htmlPlugins(tree, _file) {
|
||||
if (opts.enabled) {
|
||||
htmlPlugins(tree) {
|
||||
if (opts.enabled && tree !== undefined) {
|
||||
return () => {
|
||||
visit(tree, "element", (node) => {
|
||||
if (node.tagName === "img" && typeof node.properties.src === "string") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user