Marked 2 support

Would be great too if Bike was able to tie in with Marked 2 to render the text into an attractive format. I know I can do this already preview in Marked with the opml version of the file but would be great if the bike format could be made to work there too (especially if it could make use of the ‘Streaming preview’ feature).

This integration would really come into its own if/when the notes feature is also added - where the note content would be displayed as text under the various heading levels that the general outline functions offer. For reference iThoughts mind mapping does this aspect really well.

1 Like

This seems to already be working in a basic form for me. If I open Marked on a .bike file I see content as HTML.

Two problems I see are:

  1. I see <?xml version=“1.0” encoding=“utf–8”?> at the start of the file. Any thoughts on why that is? I “think” I’m writing the file correctly, odd that Marked is showing that. Any idea how to make it now show?

  2. Bike files are just HTML, but there are a few issues that I think can be fixed with embedded stylesheet. For example it would be nice to hide bullets on empty items. It would maybe be nice to draw triangles instead of bullets.

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:

Welcome to TextBundle.org!

Though an older technique of writing MD to a named clipboard may still work:

Streaming Preview

https://marked2app.com/help/Streaming_Preview.html#developers

2 Likes