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 роки тому