Add bold and italic support to jqueryMsg.
Version: 1.21.x
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=43531
Add bold and italic support to jqueryMsg.
Version: 1.21.x
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=43531
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Stalled | Feature | None | T45512 Add wikitext bold and italic support to jqueryMsg | ||
Declined | None | T153403 Watchlist toast no longer processing markup |
This is referring to '''bold''' and ''italic''.
There is a separate bug (bug 44525) about the HTML regression.
I don't know of a reasonable way to do this with the current jqueryMsg parsing model. Even for something simple like:
'''bold text'''
'literal' (how regular text is processed) swallows the ending markup (making the whole literal "bold text'''"). Then, of course, the ending markup isn't available to close the bold.
The real problem is that nothing backtracks through the literal later after the first attempt fails. Thus, after everything else fails, you end up with the whole thing ("'''bold text'''") being treated as a literal.
Other parts of the code work around this deficiency by excluding various characters from normal text (e.g. angle brackets), but I don't think it's really workable to exclude single quote.
This is lower priority now that we replaced just about all uses of '''foo''' and ''foo'' with <strong>foo</strong> and <em>foo</em> in localisation messages, and these are handled correctly since T66740.
jqueryMsg should not support the '' and ''' syntax. These should be parsed on server side and transmitted as <i> and <b>.