Page MenuHomePhabricator

Parsoid strips exclamation mark when it's at the start of a line
Closed, ResolvedPublic

Description

When a line starts with an exclamation mark, parsoid removes the exclamation mark, and also when there's a space before the exclamation mark (it respects the space).

For example:

INPUT:

!1

OUTPUT:

1

INPUT:

!1

OUTPUT:

<nowiki> 1</nowiki>

See URL for example.

I discovered it reviewing this edit:

http://www.mediawiki.org/w/index.php?diff=716121

I don't know if the "General" component is correct.


Version: unspecified
Severity: normal
URL: https://www.mediawiki.org/wiki/User:Ciencia_Al_Poder/Parsoid/1

Details

Reference
bz50104

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:58 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz50104.

This is a side effect of the way we support template syntax even outside a table context. This tokenizes to a table heading, which is then dropped while building the DOM as it is not wrapped into a table.

We should still be able to support this by adding a pass that checks for dropped table headings on the DOM based on the shadow metas and converts them back to text.

This has been fixed a while back.