Ben Kurtovic
8cd0bdb322
Autoformat: black + clang-format + clang-tidy
2 years ago
Ben Kurtovic
297bcb0cee
Move mwparserfromhell to src/ dir
3 years ago
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 years ago
Ben Kurtovic
b7b3b2e33e
Update changelog; minor tweak to file headers
3 years ago
Ben Kurtovic
1c983d3738
Assorted cleanup, linter fixes, and improvements for Python 3
3 years ago
Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
4 years ago
Ben Kurtovic
83bcb902b8
Support manual construction of Node objects ( fixes #214 )
5 years ago
Ben Kurtovic
68ded2f890
Add keep_template_params to Wikicode.strip_code ( #175 )
7 years ago
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
8 years ago
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
9 years ago
Ben Kurtovic
87e0079512
Take proper advantage of Sphinx's default domains.
9 years ago
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
10 years ago
Ben Kurtovic
99d433c2d5
Change protocol for Node iteration; rename __iternodes__ to __children__.
10 years ago
Ben Kurtovic
066049b46a
Update email address.
10 years ago
Ben Kurtovic
d1a7d25220
Set right context for ExternalLink.url; Wikicode.filter_external_links()
10 years ago
Ben Kurtovic
67f1762aa4
Doc updates, and allow passing a starting context to tokenize().
10 years ago
Ben Kurtovic
d91c65dc1f
TestExternalLink; some fixes in ExternalLink.
10 years ago
Ben Kurtovic
0886b6fbf6
Add ExternalLink Node type.
10 years ago
Ben Kurtovic
8db40689ed
Improve a few things about nodes; simply a method in Wikicode.
11 years ago
Ben Kurtovic
34b85a93cd
Cosmetic change: standardize whitespace after class definition.
11 years ago
Ben Kurtovic
cd5cc6a7d0
Update copyright notices for 2013.
11 years ago
Ben Kurtovic
3dbf0bc9bb
Fix heading/link code stripping; add WIKILINK contexts to documentation.
11 years ago
Ben Kurtovic
21d33e1802
Adding Wikilink class.
11 years ago
Ben Kurtovic
c01f78aee1
Implement arguments in tokenizer - preliminary results are promising.
11 years ago
Ben Kurtovic
38b664f8c5
Add missing setters for some nodes and extras ( #8 )
11 years ago
Ben Kurtovic
816207bb5a
Simplify docs massively.
11 years ago
Ben Kurtovic
b0418189d6
Document all of Template, plus some other fixes.
11 years ago
Ben Kurtovic
0d224e1a63
Document mwparserfromhell.nodes, Node, Heading, and HTMLEntity.
11 years ago
Ben Kurtovic
90b18e3abc
Finish updating all to compat except for the parser.
11 years ago
Ben Kurtovic
137b9fc68f
Fix some bugs; satisfy PyLint on certain inheritance things.
11 years ago
Ben Kurtovic
219b9086d2
Finish implementing Builder for all existing Nodes; BuildStack.
11 years ago
Ben Kurtovic
3633f31633
Relaive imports because they are awesome; more stuff in SmartList.
11 years ago
Ben Kurtovic
9355f22d22
Implement interface for __showtree__.
Some cleanup and import fixes.
11 years ago
Ben Kurtovic
c3ee6c919d
Implementing __iternodes__ protocol.
11 years ago
Ben Kurtovic
69cfbd975f
Fix args.
11 years ago
Ben Kurtovic
253c812fb3
Implement __strip__ API for Wikicode.
11 years ago
Ben Kurtovic
fca7e9dd80
Implement Heading, HTMLTag, HTMLTagAttribute, plus some fixes.
11 years ago
Ben Kurtovic
f7289b340a
Ooh, we can do this!
11 years ago
Ben Kurtovic
e88a5fd3cc
Quite a bit of additions, mostly to Template.
11 years ago
Ben Kurtovic
e4fd6ef127
Updating with a more logical project structure.
11 years ago
Ben Kurtovic
4cb3506820
Update copyright notice; some additions.
12 years ago
Ben Kurtovic
47bc513a7e
StringMixin -> StringMixIn
12 years ago
Ben Kurtovic
9d1e77000c
A bunch of updates from the past weeks.
12 years ago
Ben Kurtovic
a880ff8bf2
mwtemplateparserfromhell -> mwparserfromhell; some additions; still incomplete
12 years ago
Ben Kurtovic
ce8adf4b2e
Initial commit
12 years ago