From e65727a8a602f667654b4811bf7578b8c23b49ed Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 12 Apr 2017 23:21:59 +0100 Subject: Document transforms.run --- NEWS | 4 ++++ README.md | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/NEWS b/NEWS index be3d7e5..7cef3b0 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +# 1.3.4 + +* Add transforms.run. + # 1.3.3 * Read children of w:object elements. diff --git a/README.md b/README.md index 7e841a7..1e18119 100644 --- a/README.md +++ b/README.md @@ -430,6 +430,12 @@ Returns a function that can be used as the `transform_document` argument. This will apply the function `transform_paragraph` to each paragraph element. `transform_paragraph` should return the new paragraph. +#### `mammoth.transforms.run(transform_run)` + +Returns a function that can be used as the `transform_document` argument. +This will apply the function `transform_run` to each run element. +`transform_run` should return the new run. + #### `mammoth.transforms.get_descendants(element)` Gets all descendants of an element. -- cgit v1.2.3