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.

CHANGELOG 2.9 KiB

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