Marked is really designed to preview MD files, and passes actual tags through as the exception, rendering them if they are recognizably HTML, which may not apply to the <?xml ...>
tag.
I think the best way to use Marked with Bike may be to:
- First generate MD from Bike with a preliminary external script (I’ve drafted a rough one for myself that does that)
- Or write a (Bike → MD) preprocessor which plugs into the
Marked > Preferences > Advanced > Custom Processor
slot
The specifics of mapping from Bike outline nodes of varying depths to MD heading styles etc etc may get simpler if Bike nodes ever acquire some kind of type attribute mechanism. (e.g. to flag special node types, for formatting purposes, like note
vs bullet list
vs heading
etc)
See:
Draft demos: Copy As Markdown & Save As Markdown - Bike - Hog Bay Software Support
PS I think the Streaming Preview feature of Marked requires implementation of a special output bundle format:
Though an older technique of writing MD to a named clipboard may still work:
https://marked2app.com/help/Streaming_Preview.html#developers