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.

changelog.rst 3.7 KiB

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