https://bugzilla.wikimedia.org/show_bug.cgi?id=18765
--- Comment #7 from Platonides <[email protected]> 2009-09-27 21:16:45 UTC --- Created an attachment (id=6589) --> (https://bugzilla.wikimedia.org/attachment.cgi?id=6589) Parser change MediaWiki handles unbalanced quotes by looking at the different words length and doing a guess. The test case showed several issues: -MediaWiki treated the beginning of line as a multiletter word. -Markup as <span> or | are treated as "words". There's also the parser assumption that words are separated by spaces, which is not true for all languages. The patch fixes just the first issue (plus parsertest and releasenotes). Many usages now work, but <span>'''Look at ''this edit'''s complicated bold/italic markup!'''</span> and {| |'''Look at ''this edit'''s complicated bold/italic markup!''' |} Still fail, since it thinks <span> and | is text instead of markup. I don't think it's worth trying to instruct it that. The behavior of parsertest "Mixing markup for italics and bold" changed, since it began the line with bold quotes. I modified the rule "If there are more than 5 apostrophes in a row, assume they're all text except for the last 5." rule to make the 6 apostrophes produce the original <b>bold</b><b>bold<i>bolditalics</i></b>. It still spits single quotes to match open italic and bold but general behavior seems closer to what a human would expect. See the new 'Six quotes' parsertest for all the cases. -- 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
