A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

56 satır
2.6 KiB

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