Releases: earwig/mwparserfromhell
Releases · earwig/mwparserfromhell
version 0.2
- The parser now fully supports Python 3 in addition to Python 2.7.
- Added a C tokenizer extension that is significantly faster than its Python
equivalent. It is enabled by default (if available) and can be toggled by
settingmwparserfromhell.parser.use_c
to a boolean value. - Added a complete set of unit tests covering parsing and wikicode
manipulation. - Renamed
Wikicode.filter_links()
tofilter_wikilinks()
(applies toifilter
as
well). - Added filter methods for Arguments, Comments, Headings, and HTMLEntities.
- Added
before
param toTemplate.add()
; renamedforce_nonconformity
to
preserve_spacing
. - Added
include_lead
param toWikicode.get_sections()
. - Removed
flat
param fromWikicode.get_sections()
. - Removed
force_no_field
param fromTemplate.remove()
. - Added support for Travis CI.
- Added note about Windows build issue in the README.
- The tokenizer will limit itself to a realistic recursion depth to prevent
errors and unreasonably long parse times. - Fixed how some nodes' attribute setters handle input.
- Fixed multiple bugs in the tokenizer's handling of invalid markup.
- Fixed bugs in the implementation of
SmartList
andStringMixIn
. - Fixed some broken example code in the README; other copyedits.
- Other bugfixes and code cleanup.
version 0.1.1
- Added support for Comments (
<!-- foo -->
) and Wikilinks ([[foo]]
). - Added corresponding
ifilter_links()
andfilter_links()
methods to Wikicode. - Fixed a bug when parsing incomplete templates.
- Fixed
strip_code()
to affect the contents of headings. - Various copyedits in documentation and comments.
version 0.1
- Initial release.