aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-07-17 18:50:20 +0100
committerMichael Williamson <mike@zwobble.org>2014-07-17 18:50:20 +0100
commit7d236dd9ddcd340931738713357951152774e681 (patch)
treebfe66a3987300206f268b8f3675cf22b3353bba6 /README.md
parentb3ad2d7dbebfbbcf40583fba0e44b7da6a6055fc (diff)
Fix indentation in README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index 6e5b7a2..c5fbb84 100644
--- a/README.md
+++ b/README.md
@@ -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 = {