Skip to content

Commit 2c16ee2

Browse files
committed
Quartz sync: May 31, 2025, 12:08 PM
1 parent b51b1f0 commit 2c16ee2

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

content/z-index/Guideline.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description:
33
created: 2023-12-01
4-
modified: 2025-05-30
4+
modified: 2025-05-31
55
status:
66
- 🗺️
77
tags:
@@ -304,9 +304,6 @@ int main() {
304304
- mp3
305305
- ![[audio-sample-mp3.mp3]]
306306
- [[audio-sample-mp3.mp3]]
307-
- wav
308-
- ![[audio-sample-wav.wav]]
309-
- [[audio-sample-wav.wav]]
310307
- m4a
311308
- ![[audio-sample-m4a.m4a]]
312309
- [[audio-sample-m4a.m4a]]
@@ -316,10 +313,15 @@ int main() {
316313
- 3gp
317314
- ![[audio-sample-3gp.3gp]]
318315
- [[audio-sample-3gp.3gp]]
316+
<!--
317+
- wav
318+
- ![[audio-sample-wav.wav]]
319+
- [[audio-sample-wav.wav]]
319320
- flac
320321
- ![[audio-sample-flac.flac]]
321322
- [[audio-sample-flac.flac]]
322-
323+
-->
324+
323325
## iframe
324326
- pdf
325327
- ![[iframe-sample-pdf.pdf]]

quartz/components/scripts/mindmap.inline.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ async function renderMindmap(mindmap: HTMLElement) {
171171
return () => { }
172172
}
173173

174+
const data: IPureNode = JSON.parse(decodeURIComponent(mindmap.dataset["mindmap"]))
175+
174176
const option = JSON.parse(mindmap.dataset["cfg"]!)
175177
const markmapOptions = deriveOptions(option);
176178
markmapOptions.scrollForPan = option.scrollForPan;
@@ -179,8 +181,7 @@ async function renderMindmap(mindmap: HTMLElement) {
179181
svg.setAttribute("width", "100%")
180182
svg.setAttribute("height", "100%")
181183
mindmap.appendChild(svg)
182-
183-
const mm = Markmap.create(svg, markmapOptions, JSON.parse(decodeURIComponent(mindmap.dataset["mindmap"])) as IPureNode)
184+
const mm = Markmap.create(svg, markmapOptions, data)
184185
mm.fit()
185186

186187
renderToolbar(mindmap, mm, option)

quartz/plugins/transformers/mindmap.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,20 @@ export const Mindmap: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =>
176176
wikilinkRegex,
177177
wikilinkReplacement(slug, transformOptions)
178178
)
179-
// node.content = replaceMatches(
180-
// node.content,
181-
// youtubeImageRegex,
182-
// ytLinkReplacement()
183-
// )
184-
// node.content = replaceMatches(
185-
// node.content,
186-
// calloutRegex,
187-
// calloutReplacement()
188-
// )
179+
node.content = replaceMatches(
180+
node.content,
181+
youtubeImageRegex,
182+
ytLinkReplacement()
183+
)
184+
node.content = replaceMatches(
185+
node.content,
186+
calloutRegex,
187+
calloutReplacement()
188+
)
189189
})(root)
190190

191191
file.data.mindmap = root
192+
// file.data.mindmapOptions = transformOptions
192193
}
193194

194195
return [() => {

0 commit comments

Comments
 (0)