I posted a demo a while back exploring TW5 -> html -> TW5 syntax conversion:
https://saqimtiaz.github.io/sq-tw/typewriter.html

It may provide some ideas or inspiration.

IIRC I also used a very quick hack of turndown for the html to wiki syntax 
conversion step. From what I remember it works reasonably well for most 
text formatting, widgets and macros are of course another story but that 
wont matter if you are only interested in converting HMTL to wiki syntax 
and not attempting a round trip conversion.

On Friday, March 26, 2021 at 7:50:05 AM UTC+1 [email protected] wrote:

> Hello everyone! Another newbie posting.
>
> I have been working on a HTML to TW5 wikitext converter. I use TW5 as a 
> digital notebook for my ever-increasing pile of notes from my studies. I 
> have been trying to convert my old MS word-based notes into TW5.
>
> I'm chose wikitext over directly embedding HTML code because TW5 is much 
> more lightweight and can greatly reduce the size of the notebook
>
> I don't want to use markdown either because TW5 allows for much more 
> flexible formats e.g. merged table cells & nested ordered & unordered lists
>
> I have brought in inspirations from project called Turndown (a HTML > MD 
> converter) and adapting it to tiddlywiki format. I have also thrown in a 
> WYSIWYG editor. (yes I know many people have issues with WYSIWYG... But I 
> really need a helping hand with copy-and-pasting from MS word)
>
> So far I'm making some progress and I have been breathing fresh air into 
> my stale pile of MS-word notes.
>
> I need some advice on:
>
>    1. Is there a similar project out there? I have tried to search for a 
>    similar tool but none found so far.
>    2. Is there any edge cases in wikitext (e.g. nesting blockquotes in 
>    bullets... those kind of stuff) That you think is important for such a 
> tool 
>    to be able to handle?
>
> Thank you! :) I hope I can continue to improve this tool and hopefully 
> post it on Github within a few months' time.
>
> [image: Screenshot 2021-03-26 at 2.13.32 PM.png]
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2d406e6d-2738-4464-8cc1-e766044555f3n%40googlegroups.com.

Reply via email to