A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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