A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

changelog.rst 3.8 KiB

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