You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import mwparserfromhell
wikicode = mwparserfromhell.parse('== Foo ==')
for heading in wikicode.filter_headings():
print(repr(heading.title))
prints:
' Foo '
i.e. it preserves the whitespace inside the == marks. I don't know if that's strictly incorrect, but it's different from what Parsoid does, which is to strip the whitespace:
Possibly related to #55?
prints:
' Foo '
i.e. it preserves the whitespace inside the == marks. I don't know if that's strictly incorrect, but it's different from what Parsoid does, which is to strip the whitespace:
The text was updated successfully, but these errors were encountered: