On Sunday, August 16, 2020 at 9:02:37 PM UTC+2, Adithya B wrote:
>
> [...] change the format to x-tiddlywiki but there seem to be a big bug 
> (where the formatting breaks when urls have //)


Yea, that's a bug. ... The "workaround fix is" put a // at the end of the 
line, which will end "italic" formatting.
 

>
> I would happily give some time to work on it if you can help me understand 
> this code:  
> https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki
> Its obfuscated and minimized :/
>

You'd need to work with the source code. 
https://github.com/codemirror/CodeMirror/blob/master/mode/tiddlywiki/tiddlywiki.js
You'll need to understand the internal working of cm-mode code. .. see: 
https://codemirror.net/doc/manual.html#modeapi
 

>
> I would love it it if this plugin
> 1) Works with TW5 Wikitext by default (without needing the content-type to 
> be changed)
>

That should be a relatively easy fix.
 

> 2) highlights the headlines (!)
> 3) colours everything within [[ ]], {{}} and << >>
>

4) Makes hyperlinks work
>

I don't  understand this one. May be // as mentioned above. 

-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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34e4b2e8-5035-48ba-a025-00ba81fb1e2fo%40googlegroups.com.

Reply via email to