Hi Leopold One approach that you may have already tried is to use one of the many available off-the-shelf HTML to Markdown conversion tool to convert TiddlyWiki’s plain HTML output into Markdown. For example:
https://www.browserling.com/tools/html-to-markdown <https://www.browserling.com/tools/html-to-markdown> There are many tools available; the most flexible are command line based. The trick to getting TiddlyWiki’s HTML output is to use the browser developer tools to locate the parent node and then right click and choose “Copy as HTML”. If you can arrange for all your tiddlers to be open you might be able to convert the entire corpus in one operation. Best wishes Jeremy. > On 9 Mar 2017, at 23:20, Adrian Sampaleanu <[email protected]> wrote: > > You might want to look at doing this conversion with a programming language > which has advanced parsing (more sophisticated and approachable compared to > regular expressions) as a main feature. I'm specifically talking about Rebol > <http://www.rebol.com/>or Red <http://www.red-lang.org/p/about.html>. > > On Monday, March 6, 2017 at 9:16:20 PM UTC-5, Leopold Bloom wrote: > Markdown doesn't have easy way to represent wikilinks, true, but I'll be okay > with either Dokuwiki <https://www.dokuwiki.org/wiki:syntax> or Mediawiki > <https://www.mediawiki.org/wiki/Help:Formatting> wikitext formats. I use the > following formatting devices mostly: links, code blocks, in-line code, > headings, bullets, and numbered lists. I know Emacs and Vim at a basic level, > I will try to create some macro to process the files one by one—first the > links, in the second go bullets and so on and so forth. If I could get this > to work it would become easy for me to host my files on the web. My TW5 is > 2.1+ mb and it is a big file (for a webpage) to host on the web. Dumping all > the text files (once converted, say, to Dokuwiki) will allow easy hosting > online in Dokuwiki. > > I'd bookmarked a Perl module HTML:WikiConverter > <http://search.cpan.org/~diberri/HTML-WikiConverter-0.61/lib/HTML/WikiConverter.pm> > to convert HTML (output withTW5 node.js) to various wikitext formats, but > since I am not a programmer I had trouble getting it to properly convert the > wikilinks in the output converted text, but it does have an option for > wikifying links; I need to experiment to see how I can make it work. > > On Monday, 6 March 2017 17:39:05 UTC+5:30, PMario wrote: > Hi Leopold, > > There is no automagic way to achieve this. So you'll need to do manual "find > and replace" magic. ... You can split your tiddlers into single files, use an > external text editor and do global search and replace, which should be pretty > fast. ... But you need to be careful. markdown only supports basic wikitext > functions. TiddlyWiki wikitext has a lot more possibilities. > > -mario > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/30af0892-b954-4008-9d18-babf730a2704%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/30af0892-b954-4008-9d18-babf730a2704%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7B8763E3-C3D0-43E8-98A4-0F6607B12B34%40gmail.com. For more options, visit https://groups.google.com/d/optout.

