Formatting

This commit is contained in:
Emile Bangma 2024-09-22 14:36:16 +00:00
parent 35069bbe24
commit e73f28afdb
3 changed files with 4 additions and 9 deletions

View File

@ -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 = {}

View File

@ -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() {

View File

@ -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") {