A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
2.1 KiB

  1. v0.3 (unreleased):
  2. - Added complete support for HTML Tags, along with appropriate unit tests. This
  3. includes forms like <ref>foo</ref>, <ref name="bar"/>, and wiki-markup tags
  4. like bold ('''), italics (''), and lists (*, #, ; and :).
  5. - Wikicode's filter methods are now passed 'recursive=True' by default instead
  6. of False. This is a breaking change if you rely on any filter() methods being
  7. non-recursive by default.
  8. - Various fixes and cleanup.
  9. v0.2 (released June 20, 2013):
  10. - The parser now fully supports Python 3 in addition to Python 2.7.
  11. - Added a C tokenizer extension that is significantly faster than its Python
  12. equivalent. It is enabled by default (if available) and can be toggled by
  13. setting `mwparserfromhell.parser.use_c` to a boolean value.
  14. - Added a complete set of unit tests covering parsing and wikicode
  15. manipulation.
  16. - Renamed Wikicode.filter_links() to filter_wikilinks() (applies to ifilter as
  17. well).
  18. - Added filter methods for Arguments, Comments, Headings, and HTMLEntities.
  19. - Added 'before' param to Template.add(); renamed 'force_nonconformity' to
  20. 'preserve_spacing'.
  21. - Added 'include_lead' param to Wikicode.get_sections().
  22. - Removed 'flat' param from Wikicode.get_sections().
  23. - Removed 'force_no_field' param from Template.remove().
  24. - Added support for Travis CI.
  25. - Added note about Windows build issue in the README.
  26. - The tokenizer will limit itself to a realistic recursion depth to prevent
  27. errors and unreasonably long parse times.
  28. - Fixed how some nodes' attribute setters handle input.
  29. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  30. - Fixed bugs in the implementation of SmartList and StringMixIn.
  31. - Fixed some broken example code in the README; other copyedits.
  32. - Other bugfixes and code cleanup.
  33. v0.1.1 (released September 21, 2012):
  34. - Added support for Comments (<!-- foo -->) and Wikilinks ([[foo]]).
  35. - Added corresponding ifilter_links() and filter_links() methods to Wikicode.
  36. - Fixed a bug when parsing incomplete templates.
  37. - Fixed strip_code() to affect the contents of headings.
  38. - Various copyedits in documentation and comments.
  39. v0.1 (released August 23, 2012):
  40. - Initial release.