support kroki stored as asset
r
rrrevin
to insert a kroki definition, the system allows for the definition to be placed after the kroki diagram type. For some diagrams (aka:excalidraw), this can get to be thousands of lines of just kroki diagram. Pain in the backside to scroll down to the text you need to edit.
It would be great if the actual contents of the kroki diagram could be stored as an asset file. Something that is over 1300 lines long, which in markup editors takes bloody forever to load.. is changed to reference a single asset file that is loaded at render time.
The format remains the same, except a reference to the asset file is added after the diagram type. This makes editing the page run sooooo much smoother. and you only have to update the asset file with a new version, not redo the page if the diagram changes.