diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-04-12 23:21:59 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-04-12 23:22:39 +0100 |
| commit | e65727a8a602f667654b4811bf7578b8c23b49ed (patch) | |
| tree | 869a2c604722421d05f07aa6ace05fc9023d3c6c /README.md | |
| parent | f2db4aee1fe7007f410ef6cf51b0fdd5a1b1f49c (diff) | |
Document transforms.run
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |
