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

11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. v0.4 (unreleased):
  2. - Added support for Python 3.2 (along with current support for 3.3 and 2.7).
  3. v0.3.1 (released August 29, 2013):
  4. - Fixed a parser bug involving URLs nested inside other markup.
  5. - Fixed some typos.
  6. v0.3 (released August 24, 2013):
  7. - Added complete support for HTML Tags, including forms like <ref>foo</ref>,
  8. <ref name="bar"/>, and wiki-markup tags like bold ('''), italics (''), and
  9. lists (*, #, ; and :).
  10. - Added support for ExternalLinks (http://example.com/ and
  11. [http://example.com/ Example]).
  12. - Wikicode's filter methods are now passed 'recursive=True' by default instead
  13. of False. This is a breaking change if you rely on any filter() methods being
  14. non-recursive by default.
  15. - Added a matches() method to Wikicode for page/template name comparisons.
  16. - The 'obj' param of Wikicode.insert_before(), insert_after(), replace(), and
  17. remove() now accepts other Wikicode objects and strings representing parts of
  18. wikitext, instead of just nodes. These methods also make all possible
  19. substitutions instead of just one.
  20. - Renamed Template.has_param() to has() for consistency with Template's other
  21. methods; has_param() is now an alias.
  22. - The C tokenizer extension now works on Python 3 in addition to Python 2.7.
  23. - Various bugfixes, internal changes, and cleanup.
  24. v0.2 (released June 20, 2013):
  25. - The parser now fully supports Python 3 in addition to Python 2.7.
  26. - Added a C tokenizer extension that is significantly faster than its Python
  27. equivalent. It is enabled by default (if available) and can be toggled by
  28. setting `mwparserfromhell.parser.use_c` to a boolean value.
  29. - Added a complete set of unit tests covering parsing and wikicode
  30. manipulation.
  31. - Renamed Wikicode.filter_links() to filter_wikilinks() (applies to ifilter as
  32. well).
  33. - Added filter methods for Arguments, Comments, Headings, and HTMLEntities.
  34. - Added 'before' param to Template.add(); renamed 'force_nonconformity' to
  35. 'preserve_spacing'.
  36. - Added 'include_lead' param to Wikicode.get_sections().
  37. - Removed 'flat' param from Wikicode.get_sections().
  38. - Removed 'force_no_field' param from Template.remove().
  39. - Added support for Travis CI.
  40. - Added note about Windows build issue in the README.
  41. - The tokenizer will limit itself to a realistic recursion depth to prevent
  42. errors and unreasonably long parse times.
  43. - Fixed how some nodes' attribute setters handle input.
  44. - Fixed multiple bugs in the tokenizer's handling of invalid markup.
  45. - Fixed bugs in the implementation of SmartList and StringMixIn.
  46. - Fixed some broken example code in the README; other copyedits.
  47. - Other bugfixes and code cleanup.
  48. v0.1.1 (released September 21, 2012):
  49. - Added support for Comments (<!-- foo -->) and Wikilinks ([[foo]]).
  50. - Added corresponding ifilter_links() and filter_links() methods to Wikicode.
  51. - Fixed a bug when parsing incomplete templates.
  52. - Fixed strip_code() to affect the contents of headings.
  53. - Various copyedits in documentation and comments.
  54. v0.1 (released August 23, 2012):
  55. - Initial release.