A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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