Html to markdown to wikitext

my purpose is to convert html to wikitext. but seems no direct tool to do that.

so i start search in google, and found this tool “Turndown” GitHub - mixmark-io/turndown: 🛏 An HTML to Markdown converter written in JavaScript

try to figure out how to make it work in my Tiddlywiki.

i copied the code from https://unpkg.com/turndown/dist/turndown.js and put it in a tidder surround by
<script> </script>
and tag it with $:/tags/RawMarkup. and then try to use macro or procedure to make it work. but failed …

I dont recall seeing a html to tiddlywiki markdown, however there are other options.

  • This is a gap we should fill, especialy to add tiddlywiki to pandoc.org conversions.

I have seen a browser tool that converts html to markdown, which you can use the markdown plugin to display correctly within tiddlywiki.

ChatGPT outputs in markdown by default but I have also used it to generate tiddlywiki wikitext with a bit of fuss.

May be @saqimtiaz can help you. His typewriter project can convert HTML into TW wikitext. It also uses the turndown library.

1 Like

thanks, i used AI (deepseek R1), which is amzing, helped me direct transfered html to tiddlywiki text…
but i still want to figure out how to make turndown work in tiddlywiki.

1 Like