diff --git a/CHANGELOG b/CHANGELOG index 84193e1..3876562 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,10 @@ v0.3 (unreleased): of False. This is a breaking change if you rely on any filter() methods being non-recursive by default. - Added a matches() method to Wikicode for page/template name comparisons. +- The 'obj' param of Wikicode.insert_before(), insert_after(), replace(), and + remove() now accepts other Wikicode objects and strings representing parts of + wikitext, instead of just nodes. These methods also make all possible + substitutions instead of just one. - The C tokenizer extension now works on Python 3 in addition to Python 2.7. - Various fixes and cleanup. diff --git a/docs/changelog.rst b/docs/changelog.rst index 78a27ad..c5e2516 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -16,6 +16,11 @@ Unreleased if you rely on any filter() methods being non-recursive by default.** - Added a :py:meth:`.matches` method to :py:class:`~.Wikicode` for page/template name comparisons. +- The *obj* param of :py:meth:`Wikicode.insert_before <.insert_before>`, + :py:meth:`~.insert_after`, :py:meth:`~.replace`, and :py:meth:`~.remove` now + accepts :py:class:`~.Wikicode` objects and strings representing parts of + wikitext, instead of just nodes. These methods also make all possible + substitutions instead of just one. - The C tokenizer extension now works on Python 3 in addition to Python 2.7. - Various fixes and cleanup.