Converting Tiddlywiki Wikitext to Markdown

1,627 views
Skip to first unread message

Leopold Bloom

unread,
Jan 28, 2016, 12:43:47 AM1/28/16
to tiddl...@googlegroups.com
I have 200+ tiddlers (1.87mb). It is completely text and there is no images or any other binary files.

I use Tiddlywiki Wikitext and after seeing that there is support for Commonmark/Markdown I want to use that from now on.

Question: What is the easiest way to convert it all from Wikitext to Markdown?

Leopold Bloom

unread,
Mar 5, 2017, 8:44:27 PM3/5/17
to TiddlyWiki
Bump.

I'm still looking for a way to do this. I now have some 600 pages (tiddlers). Is it possible to export Tiddlywiki wikitext to other formats like Markdown, Mediawiki, Dokuwiki or Org-mode?

PMario

unread,
Mar 6, 2017, 7:09:05 AM3/6/17
to TiddlyWiki
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

Leopold Bloom

unread,
Mar 6, 2017, 9:16:20 PM3/6/17
to TiddlyWiki
Markdown doesn't have easy way to represent wikilinks, true, but I'll be okay with either Dokuwiki or Mediawiki 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 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.

Adrian Sampaleanu

unread,
Mar 9, 2017, 6:20:44 PM3/9/17
to TiddlyWiki
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 or Red.

Jeremy Ruston

unread,
Mar 10, 2017, 3:38:49 AM3/10/17
to tiddl...@googlegroups.com
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:


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.


-- 
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/30af0892-b954-4008-9d18-babf730a2704%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roving Richard

unread,
Mar 27, 2017, 7:29:57 PM3/27/17
to TiddlyWiki
Please document how you do the conversion :)


On Monday, March 6, 2017 at 9:16:20 PM UTC-5, Leopold Bloom wrote:
Reply all
Reply to author
Forward
0 new messages