A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

59 Zeilen
2.3 KiB

  1. Changelog
  2. =========
  3. v0.2
  4. ----
  5. 19da4d2144_ to master_ (released June 20, 2013)
  6. - The parser now fully supports Python 3 in addition to Python 2.7.
  7. - Added a C tokenizer extension that is significantly faster than its Python
  8. equivalent. It is enabled by default (if available) and can be toggled by
  9. setting :py:attr:`mwparserfromhell.parser.use_c` to a boolean value.
  10. - Added a complete set of unit tests covering parsing and wikicode
  11. manipulation.
  12. - Renamed :py:meth:`.filter_links` to :py:meth:`.filter_wikilinks` (applies to
  13. :py:meth:`.ifilter` as well).
  14. - Added filter methods for :py:class:`Arguments <.Argument>`,
  15. :py:class:`Comments <.Comment>`, :py:class:`Headings <.Heading>`, and
  16. :py:class:`HTMLEntities <.HTMLEntity>`.
  17. - Added *before* param to :py:meth:`Template.add() <.Template.add>`; renamed
  18. *force_nonconformity* to *preserve_spacing*.
  19. - Added *include_lead* param to :py:meth:`Wikicode.get_sections()
  20. <.get_sections>`.
  21. - Removed *flat* param from :py:meth:`.get_sections`.
  22. - Removed *force_no_field* param from :py:meth:`Template.remove()
  23. <.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 :py:class:`.SmartList` and
  31. :py:class:`.StringMixIn`.
  32. - Fixed some broken example code in the README; other copyedits.
  33. - Other bugfixes and code cleanup.
  34. v0.1.1
  35. ------
  36. ba94938fe8_ to 19da4d2144_ (released September 21, 2012)
  37. - Added support for :py:class:`Comments <.Comment>` (``<!-- foo -->``) and
  38. :py:class:`Wikilinks <.Wikilink>` (``[[foo]]``).
  39. - Added corresponding :py:meth:`.ifilter_links` and :py:meth:`.filter_links`
  40. methods to :py:class:`.Wikicode`.
  41. - Fixed a bug when parsing incomplete templates.
  42. - Fixed :py:meth:`.strip_code` to affect the contents of headings.
  43. - Various copyedits in documentation and comments.
  44. v0.1
  45. ----
  46. ba94938fe8_ (released August 23, 2012)
  47. .. _master: https://github.com/earwig/mwparserfromhell/tree/v0.2
  48. .. _19da4d2144: https://github.com/earwig/mwparserfromhell/tree/v0.1.1
  49. .. _ba94938fe8: https://github.com/earwig/mwparserfromhell/tree/v0.1