From b2bccab123b94b53b4789974ce41125e8e7735fa Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 13 Apr 2017 21:57:00 +0100 Subject: Add transforms.run --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') 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. -- cgit v1.2.3