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

11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. v0.3 (unreleased):
  2. - Added complete support for HTML Tags, along with appropriate unit tests. This
  3. includes forms like <ref>foo</ref>, <ref name="bar"/>, and wiki-markup tags
  4. like bold ('''), italics (''), and lists (*, #, ; and :).
  5. - Wikicode's filter methods are now passed 'recursive=True' by default instead
  6. of False. This is a breaking change if you rely on any filter() methods being
  7. non-recursive by default.
  8. - Added a matches() method to Wikicode for page/template name comparisons.
  9. - The 'obj' param of Wikicode.insert_before(), insert_after(), replace(), and
  10. remove() now accepts other Wikicode objects and strings representing parts of
  11. wikitext, instead of just nodes. These methods also make all possible
  12. substitutions instead of just one.
  13. - The C tokenizer extension now works on Python 3 in addition to Python 2.7.
  14. - Various fixes and cleanup.
  15. v0.2 (released June 20, 2013):
  16. - The parser now fully supports Python 3 in addition to Python 2.7.
  17. - Added a C tokenizer extension that is significantly faster than its Python
  18. equivalent. It is enabled by default (if available) and can be toggled by
  19. setting `mwparserfromhell.parser.use_c` to a boolean value.
  20. - Added a complete set of unit tests covering parsing and wikicode
  21. manipulation.
  22. - Renamed Wikicode.filter_links() to filter_wikilinks() (applies to ifilter as
  23. well).
  24. - Added filter methods for Arguments, Comments, Headings, and HTMLEntities.
  25. - Added 'before' param to Template.add(); renamed 'force_nonconformity' to
  26. 'preserve_spacing'.
  27. - Added 'include_lead' param to Wikicode.get_sections().
  28. - Removed 'flat' param from Wikicode.get_sections().
  29. - Removed 'force_no_field' param from 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 SmartList and StringMixIn.
  37. - Fixed some broken example code in the README; other copyedits.
  38. - Other bugfixes and code cleanup.
  39. v0.1.1 (released September 21, 2012):
  40. - Added support for Comments (<!-- foo -->) and Wikilinks ([[foo]]).
  41. - Added corresponding ifilter_links() and filter_links() methods to Wikicode.
  42. - Fixed a bug when parsing incomplete templates.
  43. - Fixed strip_code() to affect the contents of headings.
  44. - Various copyedits in documentation and comments.
  45. v0.1 (released August 23, 2012):
  46. - Initial release.