+1 for everything P Mario said. On Tuesday, May 12, 2020 at 4:13:04 PM UTC+2, PMario wrote: > > Hi, > > Referring to my last post, I do think, the parser isn't the right place to > do stuff like this, because the parser does something completely different. > > TW parser converts wiki text syntax into a so called AST Abstract Syntax > Tree <https://en.wikipedia.org/wiki/Abstract_syntax_tree>, which is an > internal structure, that is kept in core memory only and is not available > for end users. > > It is available for plugin authors. The flow is like this > > TW wikitext -> Parse Tree (AST) -> Widget Tree -> HTML > > What you want is: TW wikitext -> AST -> TW wikitext > > So the AST could be modified and "*partially*" converted back to > wikitext. ... BUT... since TW AST doesn't contain text structure info eg: > info about white-text (spaces / line-breaks) and comments it would be a > rewrite of the tiddler source. ... So you will loose information. > > If you want to learn, how to modify TW wikitext, that way, without > breaking it you'll need to understand how the relink-pluign > <https://github.com/flibbles/tw5-relink> works. ... Be aware this plugin > is highly sophisticated and has been a lot of work! So you'll need to be > prepared to "dig down the rabbit-hole", which needs some time! > > *That's an other way to do it ;)* > > have fun! > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4077ff8d-2926-4a98-a905-e63b65b94fc0%40googlegroups.com.