Closed cadam11 closed 4 years ago
Unfortunately, this is a fragile approach. That is why I created and added SuperFences in this project. You can create custom fences already with that extension (though ours is a little behind and should be updated here): https://facelessuser.github.io/pymdown-extensions/extensions/superfences/#custom-fences.
Thanks for the review. I appreciate that using pymdown-extensions is a better overall solution suitable for a wider audience. My goal was to avoid relying on the markdown renderer for creating a diagram image in favour of using a remote resource, so this fits what I'm looking for.
Understood. I imagine in a lot of simple cases this would work fine for you, but in more complex cases it would break. Unfortunately, taking on something like this would cause me to have to field a lot of issues for those who run into those corner cases.
I'm using this for myself and thought others may find it useful too. I only included the kroki schemes that I personally tested and found useful.