A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

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