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.
 
 
 
 

103 lines
4.3 KiB

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