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.
 
 
 
 

34 rader
1.6 KiB

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