Ben Kurtovic
297bcb0cee
Move mwparserfromhell to src/ dir
3年前
Jakub Klinkovský
bb51e8f282
Some fixes for the parsing of external links ( #232 )
* Proposed fix for https://github.com/earwig/mwparserfromhell/issues/197
* Port the fix for #197 to the C tokenizer
* Fix parsing of external links where the URL is terminated by some special character
- One existing test case has been found wrong -- current MediaWiki
version always terminates the URL when an opening bracket is
encountered.
- Other test cases added: double quote, two single quotes and angles
always terminate the URL (regardless if it is a free link or external
link inside brackets). One single quote does not terminate the URL.
* Fix case-insensitive parsing of URI schemes
3年前
Ben Kurtovic
b7b3b2e33e
Update changelog; minor tweak to file headers
3年前
Ben Kurtovic
1c983d3738
Assorted cleanup, linter fixes, and improvements for Python 3
3年前
Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
4年前
Ben Kurtovic
83bcb902b8
Support manual construction of Node objects ( fixes #214 )
5年前
Ben Kurtovic
68ded2f890
Add keep_template_params to Wikicode.strip_code ( #175 )
7年前
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
8年前
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
9年前
Ben Kurtovic
87e0079512
Take proper advantage of Sphinx's default domains.
10年前
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
10年前
Ben Kurtovic
99d433c2d5
Change protocol for Node iteration; rename __iternodes__ to __children__.
10年前
Ben Kurtovic
066049b46a
Update email address.
10年前
Ben Kurtovic
d1a7d25220
Set right context for ExternalLink.url; Wikicode.filter_external_links()
11年前
Ben Kurtovic
67f1762aa4
Doc updates, and allow passing a starting context to tokenize().
11年前
Ben Kurtovic
d91c65dc1f
TestExternalLink; some fixes in ExternalLink.
11年前
Ben Kurtovic
0886b6fbf6
Add ExternalLink Node type.
11年前
Ben Kurtovic
8db40689ed
Improve a few things about nodes; simply a method in Wikicode.
11年前
Ben Kurtovic
34b85a93cd
Cosmetic change: standardize whitespace after class definition.
11年前
Ben Kurtovic
cd5cc6a7d0
Update copyright notices for 2013.
11年前
Ben Kurtovic
3dbf0bc9bb
Fix heading/link code stripping; add WIKILINK contexts to documentation.
11年前
Ben Kurtovic
21d33e1802
Adding Wikilink class.
11年前
Ben Kurtovic
c01f78aee1
Implement arguments in tokenizer - preliminary results are promising.
12年前
Ben Kurtovic
38b664f8c5
Add missing setters for some nodes and extras ( #8 )
12年前
Ben Kurtovic
816207bb5a
Simplify docs massively.
12年前
Ben Kurtovic
b0418189d6
Document all of Template, plus some other fixes.
12年前
Ben Kurtovic
0d224e1a63
Document mwparserfromhell.nodes, Node, Heading, and HTMLEntity.
12年前
Ben Kurtovic
90b18e3abc
Finish updating all to compat except for the parser.
12年前
Ben Kurtovic
137b9fc68f
Fix some bugs; satisfy PyLint on certain inheritance things.
12年前
Ben Kurtovic
219b9086d2
Finish implementing Builder for all existing Nodes; BuildStack.
12年前
Ben Kurtovic
3633f31633
Relaive imports because they are awesome; more stuff in SmartList.
12年前
Ben Kurtovic
9355f22d22
Implement interface for __showtree__.
Some cleanup and import fixes.
12年前
Ben Kurtovic
c3ee6c919d
Implementing __iternodes__ protocol.
12年前
Ben Kurtovic
69cfbd975f
Fix args.
12年前
Ben Kurtovic
253c812fb3
Implement __strip__ API for Wikicode.
12年前
Ben Kurtovic
fca7e9dd80
Implement Heading, HTMLTag, HTMLTagAttribute, plus some fixes.
12年前
Ben Kurtovic
f7289b340a
Ooh, we can do this!
12年前
Ben Kurtovic
e88a5fd3cc
Quite a bit of additions, mostly to Template.
12年前
Ben Kurtovic
e4fd6ef127
Updating with a more logical project structure.
12年前
Ben Kurtovic
4cb3506820
Update copyright notice; some additions.
12年前
Ben Kurtovic
47bc513a7e
StringMixin -> StringMixIn
12年前
Ben Kurtovic
9d1e77000c
A bunch of updates from the past weeks.
12年前
Ben Kurtovic
a880ff8bf2
mwtemplateparserfromhell -> mwparserfromhell; some additions; still incomplete
12年前
Ben Kurtovic
ce8adf4b2e
Initial commit
12年前