Ben Kurtovic
8cd0bdb322
Autoformat: black + clang-format + clang-tidy
hace 2 años
Ben Kurtovic
297bcb0cee
Move mwparserfromhell to src/ dir
hace 3 años
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
hace 3 años
Ben Kurtovic
b7b3b2e33e
Update changelog; minor tweak to file headers
hace 3 años
Ben Kurtovic
1c983d3738
Assorted cleanup, linter fixes, and improvements for Python 3
hace 3 años
Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
hace 4 años
Ben Kurtovic
83bcb902b8
Support manual construction of Node objects ( fixes #214 )
hace 5 años
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
hace 8 años
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
hace 9 años
Ben Kurtovic
810c24e123
Don't check quotes when attributes are built from tokens.
hace 9 años
David Winegar
1b3e3c3657
Change wiki tags to use style separators
For wiki syntax tables, add `wiki_style_separator` as an attribute
for the Tag node. Also reorder `closing_wiki_markup` property and tests
to match its place in the constructor.
hace 9 años
David Winegar
ec08001871
Tables and rows now use newline as padding
Tables and rows use newlines as padding, partly because these characters
are pretty important to the integrity of the table. They might need
to be in the preceding whitespace of inner tags instead as padding after,
not sure.
hace 9 años
David Winegar
d356a570b3
Added closing_wiki_markup support to Tag node
Added support for allowing different wiki syntax for replacing the opening
and closing tags. Added for table support.
hace 9 años
Ben Kurtovic
87e0079512
Take proper advantage of Sphinx's default domains.
hace 10 años
Ben Kurtovic
963cb2f780
Store builder handlers in a dictionary. ~5% speedup.
hace 10 años
Ben Kurtovic
b997e4cd71
Support attributes quoted with '; add required quotes in value setter.
hace 10 años
Ben Kurtovic
08cafc0576
Raise ParserError for internal problems. Improve coverage. Cleanup.
hace 10 años
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
hace 10 años
Ben Kurtovic
066049b46a
Update email address.
hace 10 años
Ben Kurtovic
88f4fa7c37
Add external link contexts; reorder stuff for consistency.
hace 10 años
Ben Kurtovic
8fe8b1fef5
Implement ExternalLinks as tokens and in the builder.
hace 10 años
Ben Kurtovic
4f52887e17
wiki_markup stores the markup itself instead of a bool
hace 10 años
Ben Kurtovic
de6d5074fa
Tag.showtag -> Tag.wiki_markup
hace 10 años
Ben Kurtovic
5018d9d323
Make showtag=True implicit.
hace 11 años
Ben Kurtovic
7d1a28a249
Support single and single-only tags like <br>.
hace 11 años
Ben Kurtovic
6c2898d7bd
Make {{|=}} build correctly; add a test for this.
hace 11 años
Ben Kurtovic
81e8fdd682
Give Attributes more attributes for padding data.
hace 11 años
Ben Kurtovic
6450814729
Remove 'type' attribute from tags; rework tag definitions.
hace 11 años
Ben Kurtovic
1b4c01b4c0
Implement assertTagNodeEqual(), start test_tag(), add to tags.mwtest.
hace 11 años
Ben Kurtovic
61fc5b5eab
Fix handling of self-closing tags ( closes #31 )
hace 11 años
Ben Kurtovic
cd5cc6a7d0
Update copyright notices for 2013.
hace 11 años
Ben Kurtovic
eed7c918bf
Implement padding support for Tags completely; open_padding->padding.
hace 11 años
Ben Kurtovic
d459899649
More attribute stuff.
hace 11 años
Ben Kurtovic
827c544721
Should correctly handle closing tags with strange spacing.
hace 11 años
Ben Kurtovic
7e46601b1d
Tags should fully work now in tokenizer and builder.
Still need to do attributes.
hace 11 años
Ben Kurtovic
aa29a8bd28
Wikilinks in builder; some additions; cleanup.
hace 11 años
Ben Kurtovic
65862befdc
Support comments in tokenizer.
hace 11 años
Ben Kurtovic
2cfb097342
Comment class for <!-- comments -->; implement in builder.
hace 11 años
Ben Kurtovic
b3bfe68cd8
Start Argument node type, implement argument in builder ( #4 ).
hace 11 años
Ben Kurtovic
816207bb5a
Simplify docs massively.
hace 11 años
Ben Kurtovic
e787c97712
Finish documenting all of the main things ( #5 ).
hace 11 años
Ben Kurtovic
975be475d3
Document Builder and contexts.
hace 11 años
Ben Kurtovic
391a5bd373
Compat for the parser itself.
hace 11 años
Riamse
2eb76e7de0
Adding Python 3 support
hace 11 años
Ben Kurtovic
e57b6bdd93
Support Headings in tokenizer; handle tokens backwards in builder.
* Some other fixes, additions.
hace 11 años
Ben Kurtovic
010bd34653
Support HTMLEntities.
hace 11 años
Ben Kurtovic
02fe3b0833
Improve handling of templates in strange cases.
hace 11 años
Ben Kurtovic
6fefc28cba
Handle integers as MediaWiki does.
hace 11 años
Ben Kurtovic
69b236ee8d
Handle template parameter key dependents more intelligently.
hace 11 años
Ben Kurtovic
934b1ef016
Fixes and improvements.
hace 11 años