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