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.

преди 11 години
преди 11 години
преди 10 години
преди 10 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
преди 11 години
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. - Various fixes and cleanup.
  15. v0.2
  16. ----
  17. `Released June 20, 2013 <https://github.com/earwig/mwparserfromhell/tree/v0.2>`_
  18. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.1.1...v0.2>`__):
  19. - The parser now fully supports Python 3 in addition to Python 2.7.
  20. - Added a C tokenizer extension that is significantly faster than its Python
  21. equivalent. It is enabled by default (if available) and can be toggled by
  22. setting :py:attr:`mwparserfromhell.parser.use_c` to a boolean value.
  23. - Added a complete set of unit tests covering parsing and wikicode
  24. manipulation.
  25. - Renamed :py:meth:`.filter_links` to :py:meth:`.filter_wikilinks` (applies to
  26. :py:meth:`.ifilter` as well).
  27. - Added filter methods for :py:class:`Arguments <.Argument>`,
  28. :py:class:`Comments <.Comment>`, :py:class:`Headings <.Heading>`, and
  29. :py:class:`HTMLEntities <.HTMLEntity>`.
  30. - Added *before* param to :py:meth:`Template.add() <.Template.add>`; renamed
  31. *force_nonconformity* to *preserve_spacing*.
  32. - Added *include_lead* param to :py:meth:`Wikicode.get_sections()
  33. <.get_sections>`.
  34. - Removed *flat* param from :py:meth:`.get_sections`.
  35. - Removed *force_no_field* param from :py:meth:`Template.remove()
  36. <.Template.remove>`.
  37. - Added support for Travis CI.
  38. - Added note about Windows build issue in the README.
  39. - The tokenizer will limit itself to a realistic recursion depth to prevent
  40. errors and unreasonably long parse times.
  41. - Fixed how some nodes' attribute setters handle input.
  42. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  43. - Fixed bugs in the implementation of :py:class:`.SmartList` and
  44. :py:class:`.StringMixIn`.
  45. - Fixed some broken example code in the README; other copyedits.
  46. - Other bugfixes and code cleanup.
  47. v0.1.1
  48. ------
  49. `Released September 21, 2012 <https://github.com/earwig/mwparserfromhell/tree/v0.1.1>`_
  50. (`changes <https://github.com/earwig/mwparserfromhell/compare/v0.1...v0.1.1>`__):
  51. - Added support for :py:class:`Comments <.Comment>` (``<!-- foo -->``) and
  52. :py:class:`Wikilinks <.Wikilink>` (``[[foo]]``).
  53. - Added corresponding :py:meth:`.ifilter_links` and :py:meth:`.filter_links`
  54. methods to :py:class:`.Wikicode`.
  55. - Fixed a bug when parsing incomplete templates.
  56. - Fixed :py:meth:`.strip_code` to affect the contents of headings.
  57. - Various copyedits in documentation and comments.
  58. v0.1
  59. ----
  60. `Released August 23, 2012 <https://github.com/earwig/mwparserfromhell/tree/v0.1>`_:
  61. - Initial release.