Last modified: 2012-04-16 09:15:43 UTC
While editing [[Absorbing element]] I was expecting the equality ''z'' = ''z''*''z''' = ''z''' to be rendered as <i>z</i> = <i>z</i> * <i>z</i>' = <i>z</i>' and not as <i>z</i> = <i>z</i> * <i>z <b>=</b></i> <b>z</b> The problem seems to be related to Bug 13227, but I'm not sure, so I'm reporting it in this new bug. For now, I've changed the code to latex markup, <math>z = z*z' = z'</math> , which works fine and if I choose the option "Recommended for modern browsers" in [[Special:Preferences#preftab-1]], the resulting HTML is the one I was expecting to get using wiki markup.
Well, ''' makes bold syntax so mediawiki translation seems right. Sometimes the intended behavior is not clear and one of the different possibilities has to be taken. You can force ''' as two '' (and thus italic) by marking one of them as  or placing an empty comment or <nowiki> as separator.
I think you mean ' .  is the control character DC3. Hmm, seems as if mediawiki doesn't like ' , but that's a side issue
(In reply to comment #1) > Well, ''' makes bold syntax so mediawiki translation seems right. Sometimes the > intended behavior is not clear and one of the different possibilities has to be > taken. You can force ''' as two '' (and thus italic) by marking one of them as >  or placing an empty comment or <nowiki> as separator. Ok, but where does that second <b> tag comes from when ''z''' = ''z''' is converted to <i>z <b>=</b></i> <b>z</b> ? Note that there is only one sequence of ''' before the last z and there are two <b> before the same z.
''z''' = ''z''' Is interpreted as [start italic] z [start bold] = [stop italic (but keep on being bold)] z [stop bold] The second <b> is because mediawiki thinks you only want to stop the italic (not both italic and bolding), however in html you can't stop only the italic, you have to stop both and then re-start the bolding after the italic is stopped. (tags can't be mis-nested). (In reply to comment #2) > I think you mean ' .  is the control character DC3. > > Hmm, seems as if mediawiki doesn't like ' , but that's a side issue Not that this is related to this bug at all really, but i fixed the ' thing in r86061
(In reply to comment #4) > ''z''' = ''z''' > > Is interpreted as [start italic] z [start bold] = [stop italic (but keep on > being bold)] z [stop bold] > > The second <b> is because mediawiki thinks you only want to stop the italic > (not both italic and bolding), however in html you can't stop only the italic, > you have to stop both and then re-start the bolding after the italic is > stopped. (tags can't be mis-nested). Thanks for clafying. I was thinking that the second '' was closing the first '' and also the first ''' implicitily (and then I was asking myself why the result was not like <i>z <b>=</b></i> z<b></b> )
I think that was the original coded behavior, but then tidy fixed things the other way, so it was changed to match the de facto solution that was rendered.
(In reply to comment #6) > I think that was the original coded behavior, but then tidy fixed things the > other way, so it was changed to match the de facto solution that was rendered. I was actually testing without tidy. MediaWiki seems smart enough to fix that on its own.
Yes, now MediaWiki has that behavior, even without tidy, that's what was changed),