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.
 
 
 
 

95 lines
4.1 KiB

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