aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-04-13 21:57:00 +0100
committerMichael Williamson <mike@zwobble.org>2017-04-13 21:57:00 +0100
commitb2bccab123b94b53b4789974ce41125e8e7735fa (patch)
treeb645fe9cf71a59bb43b88ec7188a48c2b3b2ef75 /README.md
parent96b8496dc47880693b646f81cfd440de8aa5f9ae (diff)
Add transforms.run
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5257760..678e846 100644
--- a/README.md
+++ b/README.md
@@ -571,6 +571,12 @@ Returns a function that can be used as the `transformDocument` option.
This will apply the function `transformParagraph` to each paragraph element.
`transformParagraph` should return the new paragraph.
+#### `mammoth.transforms.run(transformRun)`
+
+Returns a function that can be used as the `transformDocument` option.
+This will apply the function `transformRun` to each run element.
+`transformRun` should return the new run.
+
#### `mammoth.transforms.getDescendants(element)`
Gets all descendants of an element.