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.
 
 
 
 

69 lines
3.1 KiB

  1. v0.4 (unreleased):
  2. - Added support for Python 3.2 (along with current support for 3.3 and 2.7).
  3. - Renamed Template.remove()'s first argument from 'name' to 'param', which now
  4. accepts Parameter objects in addition to parameter name strings.
  5. v0.3.1 (released August 29, 2013):
  6. - Fixed a parser bug involving URLs nested inside other markup.
  7. - Fixed some typos.
  8. v0.3 (released August 24, 2013):
  9. - Added complete support for HTML Tags, including forms like <ref>foo</ref>,
  10. <ref name="bar"/>, and wiki-markup tags like bold ('''), italics (''), and
  11. lists (*, #, ; and :).
  12. - Added support for ExternalLinks (http://example.com/ and
  13. [http://example.com/ Example]).
  14. - Wikicode's filter methods are now passed 'recursive=True' by default instead
  15. of False. This is a breaking change if you rely on any filter() methods being
  16. non-recursive by default.
  17. - Added a matches() method to Wikicode for page/template name comparisons.
  18. - The 'obj' param of Wikicode.insert_before(), insert_after(), replace(), and
  19. remove() now accepts other Wikicode objects and strings representing parts of
  20. wikitext, instead of just nodes. These methods also make all possible
  21. substitutions instead of just one.
  22. - Renamed Template.has_param() to has() for consistency with Template's other
  23. methods; has_param() is now an alias.
  24. - The C tokenizer extension now works on Python 3 in addition to Python 2.7.
  25. - Various bugfixes, internal changes, and cleanup.
  26. v0.2 (released June 20, 2013):
  27. - The parser now fully supports Python 3 in addition to Python 2.7.
  28. - Added a C tokenizer extension that is significantly faster than its Python
  29. equivalent. It is enabled by default (if available) and can be toggled by
  30. setting `mwparserfromhell.parser.use_c` to a boolean value.
  31. - Added a complete set of unit tests covering parsing and wikicode
  32. manipulation.
  33. - Renamed Wikicode.filter_links() to filter_wikilinks() (applies to ifilter as
  34. well).
  35. - Added filter methods for Arguments, Comments, Headings, and HTMLEntities.
  36. - Added 'before' param to Template.add(); renamed 'force_nonconformity' to
  37. 'preserve_spacing'.
  38. - Added 'include_lead' param to Wikicode.get_sections().
  39. - Removed 'flat' param from Wikicode.get_sections().
  40. - Removed 'force_no_field' param from Template.remove().
  41. - Added support for Travis CI.
  42. - Added note about Windows build issue in the README.
  43. - The tokenizer will limit itself to a realistic recursion depth to prevent
  44. errors and unreasonably long parse times.
  45. - Fixed how some nodes' attribute setters handle input.
  46. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  47. - Fixed bugs in the implementation of SmartList and StringMixIn.
  48. - Fixed some broken example code in the README; other copyedits.
  49. - Other bugfixes and code cleanup.
  50. v0.1.1 (released September 21, 2012):
  51. - Added support for Comments (<!-- foo -->) and Wikilinks ([[foo]]).
  52. - Added corresponding ifilter_links() and filter_links() methods to Wikicode.
  53. - Fixed a bug when parsing incomplete templates.
  54. - Fixed strip_code() to affect the contents of headings.
  55. - Various copyedits in documentation and comments.
  56. v0.1 (released August 23, 2012):
  57. - Initial release.