diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-07-17 18:50:20 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-07-17 18:50:20 +0100 |
| commit | 7d236dd9ddcd340931738713357951152774e681 (patch) | |
| tree | bfe66a3987300206f268b8f3675cf22b3353bba6 /README.md | |
| parent | b3ad2d7dbebfbbcf40583fba0e44b7da6a6055fc (diff) | |
Fix indentation in README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -201,15 +201,15 @@ You can use the `transformDocument` argument to modify the document appropriatel ```javascript function transformElement(element) { - if (element.children) { - element.children.forEach(transformElement); - } - if (element.type === "paragraph") { - if (element.alignment === "center" && !element.styleId) { - element.styleId = "Heading2"; - } - } - return element; + if (element.children) { + element.children.forEach(transformElement); + } + if (element.type === "paragraph") { + if (element.alignment === "center" && !element.styleId) { + element.styleId = "Heading2"; + } + } + return element; } var options = { |
