I work a lot with Markdown. And I know Tinderbox can e.g. through markdown-prototype display Markdown. Fine.
However, I often start quickly with a note without invoking the markdown-prototype. Those notes often contain bullet-items.
So the note grows and several other notes are added … and now it would be to tedious to go back and manually convert RTF-bullet-lists (using the List convention in Tinderbox) into bullet-lists (markdown style).
So I’d like to know of a good option to – after exporting the selected notes from Tinderbox to Finder as a RTF-file – convert RTF to markdown.
I know there are online-converters to do that and I know there is Pandoc. I would love to use pandoc … but as far as I can see, there’s no easy to handle Frontend for Pandoc.
Nice one @PaulWalters. I like the idea of simply changing the extension. But, of course, that does not turn bullet-items (created in TBX, RTF style) into markdown-readable bullet-item, does it?
If it would, one wouldn’t even need to bother changing the extension that at least all the Markdown-Editors I know do read the Markdown content of a file no matter whether the file has either .txt or .md extension.
Hi @andreas … I always write in Markdown by default, even if the system I’m writing in is not “Markdown aware”. That way, I never have to worry about converting Word or RTF or whatever into MD; a simple text copy/paste is all I need.
But first of: RTF is quite capable for jotting down things quick and dirty.
Hence, bullet-items start to become ugly to look at once written in a non-Markdown-Editor.
But most importantly: There are sources of doing the requested conversion.
All I am looking for is either an offline-Version of such RTF-Markdown-Convertes.
Since, one note written in markdown within Tinderbox is just fine.
But trying to use preview showing more than one note is not going to work for me.
Using RTF, however, one can easily write a whole book in tinderbox almost as good as in Scrivener, well I am about to say: in parts even better than in Scrivener. Here, I am speaking about the concatenated display of $Text-content of several selected notes.
First of, pandoc does not convert RTF to Markdown.
Secondly, the method you described is not capable of transferring everything beyond first level bullet-list-items properly. Not even Marked2App. At least not on my end.
I would export to HTML and run it through an HTML-to-markdown converter.
I don’t have time to write the code myself right now, but this would be easy to do with a stamp using a combination of exportedString and runCommand – use exportedString to get the HTML, and runCommand to pipe it through an HTML-to-markdown converter.
It may be easy enough to export to Markdown via HTML Export.
For example, you’d set $HTMLExportBoldStart to *, and $HTMLItalicStart to _. Other elements might be trickier; much depends on your precise needs, and sometimes a post-processor like HTML to Markdown could be handy