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