wikitextparser
wikitextparser copied to clipboard
A Python library to parse MediaWiki WikiText
In one of my test-sets I forgot to sanitize the input, and in result I had a `\r` (without any `\n`). This caused a funny effect I thought you might...
"[[|alt]]" is a valid wikilink, but WIKILINK_PARAM_FINDITER did not consider it valid. In result, it was seens as a wikilink, but not marked as _ for, as example, a parser...
I might just be abusing `wikitextparser` at this point, but I find the behaviour of updating `string` sometimes a bit weird, so let me explain a bit what I am...
I might just be completely overlooking this, but is it possible to get the attribute of a row in a table? ```python import wikitextparser wtp = wikitextparser.parse('{|\n|- style="background: black;"\n| cell1\n|-...
Another corner-case, this time because of a somewhat invalid user input. Given the following example, with `wikitextparser==0.46`: ```python import wikitextparser wtp = wikitextparser.parse("** Item 1\n** Item 2\n") print(wtp.get_lists()[0].items) print(wtp.get_lists()[0].sublists(0)) print(wtp.get_lists()[0].sublists())...
I'm using wikitextparser v0.51.0 and stumbled upon the following issue: ``` import wikitextparser as wtp parsed = wtp.parse("{{Something|[https://google.com Google]}}") print(parsed.external_links) ``` This should print a list with one external link....
Thank you very much for your work in wikitextparser! I've been using wikitextparser for a few hours to convert wikitext to Markdown, and I've already made substantial progress using your...