Page MenuHomePhabricator

Add wikitext bold and italic support to jqueryMsg
Open, Stalled, LowPublicFeature

Description

Add bold and italic support to jqueryMsg.


Version: 1.21.x
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=43531

Details

Reference
bz43512

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:12 AM
bzimport set Reference to bz43512.

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.

matmarex lowered the priority of this task from Medium to Low.Oct 5 2015, 12:27 PM
matmarex subscribed.

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.

Xaosflux changed the task status from Open to Stalled.Dec 16 2016, 6:41 PM
Fomafix subscribed.

jqueryMsg should not support the '' and ''' syntax. These should be parsed on server side and transmitted as <i> and <b>.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: TrevorParscal.