-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Trying to create Quartz plugin for simple (as i though) feature:
I whant to scope multiple codeblocks from the MD to emit live demo pages.
In Obsidian each codeblok can be linked as ^uniqueId placed after it on the individual line (that linespaced above and below)
- In first i would try to emit unique js files with that id's as file name, and writed in subfolder {currentPath}/assets/{blockId}.js
- so, should i do AST parsing by my self, or some quartz API can it do? (i can't find the doc)
- For a clever implementation step1 should be processing at the fly. How i see it can work:
- my Transformer plugin scope blocs, ad it metadata to AST tree (code blocs can have some meta props for linking)
- my Emmiter build js from tree as is step1 (or meta props can declare whaterfall bundle of all current MD file blocks, or ever direct link to any existed in AST step1 js file) for finalize it ever can include it to some html template to make single demo page
Can you point me how i can done it better?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request