Is your feature request related to a problem? Please describe.
Need to get original wikitext from AST, when writing WYSIWYG editor.
Describe the solution you'd like
Add rule = exports.name field to ast node, and add exports.toString to wikiparsers.
In toString, try call handleChildrenToString. (The problem is where to find this method, we can't access $tw in the wikiparser. Can we put it on parser passed from exports.init = function(parser) {?
Describe alternatives you've considered
Now it is maintained in https://github.com/tiddly-gittly/wikiast, but is quickly outdated.
Additional context
I remember some other issue we talk about adding a rule field to the ast.
Is your feature request related to a problem? Please describe.
Need to get original wikitext from AST, when writing WYSIWYG editor.
Describe the solution you'd like
Add
rule = exports.namefield to ast node, and addexports.toStringto wikiparsers.In
toString, try callhandleChildrenToString. (The problem is where to find this method, we can't access$twin the wikiparser. Can we put it onparserpassed fromexports.init = function(parser) {?Describe alternatives you've considered
Now it is maintained in https://github.com/tiddly-gittly/wikiast, but is quickly outdated.
Additional context
I remember some other issue we talk about adding a
rulefield to the ast.