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 …