File tree Expand file tree Collapse file tree 3 files changed +21
-17
lines changed
Expand file tree Collapse file tree 3 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 11---
22description :
33created : 2023-12-01
4- modified : 2025-05-30
4+ modified : 2025-05-31
55status :
66 - 🗺️
77tags :
@@ -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]]
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 [ ( ) => {
You can’t perform that action at this time.
0 commit comments