https://bugzilla.wikimedia.org/show_bug.cgi?id=6200

--- Comment #58 from Gabriel Wicke <[email protected]> 2011-11-22 16:48:14 UTC 
---
Hi Vitalyi,

thank you for your update- I hope to find time to review your code and test it
against real-world wiki source this week. The parser tests do not cover
everything, so doing A-B testing on a wiki dump is still the most reliable
test.

> After applying my patch, preformatting inside table cells is now totally
> disabled... There are no tests about it - is it considered to be a feature?

Preformatting in table cells should be supported, and ignoring the indentation
for markup-only lines appears to be a sensible choice to me.

> + Where can I read about the new parser which is now in development? How will
> it work? Will it continue to support these hacks? :-)

I am currently working on a parser based on a PEG-based tokenizer for a
standard HTML5 parser backend. The idea is to map both html tags and wiki
syntax to the same tokens, and let the HTML parser construct the DOM tree from
the resulting token soup. Some wiki-specific rules are enforced by
post-processing the token stream before feeding those to the HTML parser.

Documentation for this effort can be found at
http://www.mediawiki.org/wiki/Future/Parser_plan and my user page
(http://www.mediawiki.org/wiki/User:GWicke). The (currently Javascript) source
is available in the VisualEditor extension in SVN trunk.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to