Remove linker element

This commit is contained in:
Emile Bangma 2025-04-02 21:41:56 +00:00 committed by GitHub
parent 81ef635c95
commit a1a0831773
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -553,55 +553,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
node.properties = { node.properties = {
...node.properties, ...node.properties,
id: block, id: block,
}
node.children = [
...node.children,
{
type: "element",
tagName: "a",
properties: {
role: "anchor",
ariaHidden: true,
tabIndex: -1,
"data-no-popover": true,
href: anchor, href: anchor,
}, }
children: [
{
type: "element",
tagName: "svg",
properties: {
width: 18,
height: 18,
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
"stroke-width": "2",
"stroke-linecap": "round",
"stroke-linejoin": "round",
},
children: [
{
type: "element",
tagName: "path",
properties: {
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
},
children: [],
},
{
type: "element",
tagName: "path",
properties: {
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
},
children: [],
},
],
},
],
},
]
file.data.blocks![block] = node file.data.blocks![block] = node
} }
} }
@ -632,55 +585,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
element.properties = { element.properties = {
...element.properties, ...element.properties,
id: block, id: block,
}
element.children = [
...element.children,
{
type: "element",
tagName: "a",
properties: {
role: "anchor",
ariaHidden: true,
tabIndex: -1,
"data-no-popover": true,
href: anchor, href: anchor,
}, }
children: [
{
type: "element",
tagName: "svg",
properties: {
width: 18,
height: 18,
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
"stroke-width": "2",
"stroke-linecap": "round",
"stroke-linejoin": "round",
},
children: [
{
type: "element",
tagName: "path",
properties: {
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
},
children: [],
},
{
type: "element",
tagName: "path",
properties: {
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
},
children: [],
},
],
},
],
},
]
file.data.blocks![block] = element file.data.blocks![block] = element
} }
return return
@ -692,55 +598,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>>
node.properties = { node.properties = {
...node.properties, ...node.properties,
id: block, id: block,
}
node.children = [
...node.children,
{
type: "element",
tagName: "a",
properties: {
role: "anchor",
ariaHidden: true,
tabIndex: -1,
"data-no-popover": true,
href: anchor, href: anchor,
}, }
children: [
{
type: "element",
tagName: "svg",
properties: {
width: 18,
height: 18,
viewBox: "0 0 24 24",
fill: "none",
stroke: "currentColor",
"stroke-width": "2",
"stroke-linecap": "round",
"stroke-linejoin": "round",
},
children: [
{
type: "element",
tagName: "path",
properties: {
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
},
children: [],
},
{
type: "element",
tagName: "path",
properties: {
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
},
children: [],
},
],
},
],
},
]
file.data.blocks![block] = node file.data.blocks![block] = node
} }
} }