diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-04-13 21:57:00 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-04-13 21:57:00 +0100 |
| commit | b2bccab123b94b53b4789974ce41125e8e7735fa (patch) | |
| tree | b645fe9cf71a59bb43b88ec7188a48c2b3b2ef75 /README.md | |
| parent | 96b8496dc47880693b646f81cfd440de8aa5f9ae (diff) | |
Add transforms.run
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |
