A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

82 satır
3.5 KiB

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