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