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