You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/09/02 13:56:14 UTC

[incubator-echarts-doc] branch next updated: optimize option doc format result. add patch language

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git


The following commit(s) were added to refs/heads/next by this push:
     new c5c7977  optimize option doc format result. add patch language
c5c7977 is described below

commit c5c7977e999d8f37212637528c26d534ae3b992c
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Sep 2 21:54:06 2020 +0800

    optimize option doc format result. add patch language
---
 .gitignore                                  |   3 +-
 README.md                                   |  14 +-
 editor/common/blockHelper.js                | 155 ++++++++++++++++---
 editor/common/parseBlocks.js                | 226 +++++++++++++++++++++-------
 editor/package.json                         |   1 -
 editor/server/main.js                       |   1 +
 en/option/component/axis-common.md          | 144 ++++++++----------
 en/option/component/brush.md                |   5 -
 en/option/component/data-zoom.md            |   3 -
 en/option/component/timeline.md             |  26 ++--
 en/option/component/toolbox.md              |   2 -
 en/option/component/visual-map.md           |   4 -
 en/option/partial/1d-data.md                |   1 -
 en/option/partial/2d-data.md                |   3 -
 en/option/partial/animation.md              |   8 +-
 en/option/partial/area-style.md             |  11 +-
 en/option/partial/axisPointer-common.md     |   3 -
 en/option/partial/barGrid.md                |   2 -
 en/option/partial/circular-layout.md        |   3 +-
 en/option/partial/component-common-style.md |  23 +--
 en/option/partial/coord-sys.md              |  75 ++++-----
 en/option/partial/data-transform.md         |   1 -
 en/option/partial/encode-dimensions.md      |   1 -
 en/option/partial/formatter.md              |   6 +-
 en/option/partial/icon.md                   |   3 -
 en/option/partial/item-style.md             |   3 +-
 en/option/partial/label.md                  |  53 +++----
 en/option/partial/line-style.md             |   9 +-
 en/option/partial/mark-area.md              |  18 ++-
 en/option/partial/mark-line.md              |  36 ++---
 en/option/partial/mark-point.md             |  26 ++--
 en/option/partial/marker.md                 |   1 -
 en/option/partial/parallel.md               |   3 -
 en/option/partial/progressive.md            |   2 -
 en/option/partial/rect-layout.md            |  16 +-
 en/option/partial/roam.md                   |   1 -
 en/option/partial/style-shadow-opacity.md   |  18 +--
 en/option/partial/symbol.md                 |  11 +-
 en/option/partial/text-style.md             |  72 ++++-----
 en/option/partial/tooltip-common.md         |   9 +-
 en/option/partial/zr-graphic.md             | 171 +++++++++------------
 en/option/series/bar.md                     |   1 -
 en/option/series/candlestick.md             |   1 -
 en/option/series/custom.md                  |   2 -
 en/option/series/funnel.md                  |  17 +--
 en/option/series/graph.md                   |   1 -
 en/option/series/lines.md                   |   1 -
 en/option/series/parallel.md                |   1 -
 en/option/series/pictorialBar.md            |   5 -
 en/option/series/pie.md                     |  24 ++-
 en/option/series/sankey.md                  |   1 -
 en/option/series/sunburst.md                |   4 -
 en/option/series/tree.md                    |   1 -
 en/option/series/treemap.md                 |  33 ++--
 package-lock.json                           |   6 +-
 package.json                                |   3 +-
 tool/patchEnOption.js                       |   5 -
 tool/patchLanguage.js                       |  97 ++++++++++++
 zh/option/component/axis-common.md          |  66 +++-----
 zh/option/component/brush.md                |   5 -
 zh/option/component/data-zoom.md            |   3 -
 zh/option/component/timeline.md             |  14 +-
 zh/option/component/toolbox.md              |   2 -
 zh/option/component/visual-map.md           |   4 -
 zh/option/partial/1d-data.md                |   1 -
 zh/option/partial/2d-data.md                |   3 -
 zh/option/partial/animation.md              |   3 -
 zh/option/partial/area-style.md             |   3 +-
 zh/option/partial/axisPointer-common.md     |   3 -
 zh/option/partial/barGrid.md                |   2 -
 zh/option/partial/circular-layout.md        |   1 +
 zh/option/partial/component-common-style.md |   5 +-
 zh/option/partial/coord-sys.md              |  23 ---
 zh/option/partial/data-transform.md         |   1 -
 zh/option/partial/encode-dimensions.md      |   1 -
 zh/option/partial/focus-blur-scope.md       |   4 +-
 zh/option/partial/formatter.md              |   2 +
 zh/option/partial/icon.md                   |   3 -
 zh/option/partial/item-style.md             |   1 -
 zh/option/partial/label.md                  |  33 ++--
 zh/option/partial/line-style.md             |   3 +-
 zh/option/partial/mark-area.md              |  18 ++-
 zh/option/partial/mark-line.md              |  20 +--
 zh/option/partial/mark-point.md             |   9 +-
 zh/option/partial/marker.md                 |   1 -
 zh/option/partial/parallel.md               |   3 -
 zh/option/partial/progressive.md            |   2 -
 zh/option/partial/rect-layout.md            |   6 +-
 zh/option/partial/roam.md                   |   1 -
 zh/option/partial/selected-mode.md          |   4 +-
 zh/option/partial/style-shadow-opacity.md   |   2 -
 zh/option/partial/symbol.md                 |   1 -
 zh/option/partial/text-style.md             |  36 ++---
 zh/option/partial/tooltip-common.md         |   9 +-
 zh/option/partial/zr-graphic.md             | 173 +++++++++------------
 zh/option/series/bar.md                     |   8 +-
 zh/option/series/candlestick.md             |   1 -
 zh/option/series/custom.md                  |   2 -
 zh/option/series/funnel.md                  |  14 +-
 zh/option/series/graph.md                   |   1 -
 zh/option/series/lines.md                   |   1 -
 zh/option/series/parallel.md                |   1 -
 zh/option/series/pictorialBar.md            |   5 -
 zh/option/series/pie.md                     |  18 +--
 zh/option/series/sankey.md                  |   1 -
 zh/option/series/series.md                  |   1 +
 zh/option/series/sunburst.md                |   4 -
 zh/option/series/tree.md                    |   1 -
 zh/option/series/treemap.md                 |  21 ++-
 109 files changed, 961 insertions(+), 965 deletions(-)

diff --git a/.gitignore b/.gitignore
index 943dbf6..9e9cda1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -186,4 +186,5 @@ slides/webgl
 /editor/server/blocks.json
 /editor/server/test
 
-/zh-src
\ No newline at end of file
+/zh-src
+/en-src
\ No newline at end of file
diff --git a/README.md b/README.md
index d8304f8..f292b00 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,19 @@ Provide a website link in doc:
 [Apache ECharts (incubating) website](${websitePath}/en/download.html)
 ```
 
+Notes: formatter will treat {{use}} as a block. So don't use it inline.
+
+Some examples.
+
+```js
+// Good
+Some description
+{{ use: partial-xxx }}
+Some other description
+// Bad
+Some description about {{ use: partial-inline-xxx }}
+```
+
 #### Format Option Docs
 
 Option docs needs to be formatted before commit.
@@ -58,7 +71,6 @@ Run
 npm run format
 ```
 
-
 #### Reference of option
 
 A `~` can be used to refer to a option item in the same doc. For example:
diff --git a/editor/common/blockHelper.js b/editor/common/blockHelper.js
index d5a1d18..1547941 100644
--- a/editor/common/blockHelper.js
+++ b/editor/common/blockHelper.js
@@ -16,7 +16,10 @@ module.exports.parseArgs = function (argsStr) {
     const argsArr = [];
     let itemStr = '';
     let inStr = false;
+    let inVariable = false;
+    let inObjectLevel = 0;
     let startQuot = '';
+    let prevCh;
     for (let i = 0; i < argsStr.length; i++) {
         const ch = argsStr[i];
         if (ch === '"' || ch === '\'') {
@@ -31,13 +34,36 @@ module.exports.parseArgs = function (argsStr) {
             }
             itemStr += ch;
         }
-        else if (ch === ',' && !inStr) {
+        else if (inStr) {
+            itemStr += ch;
+        }
+        else if (ch === '{') {
+            itemStr += ch;
+            if (prevCh === '$') {
+                inVariable = true;
+            }
+            else {
+                // Value may be an object.
+                inObjectLevel++;
+            }
+        }
+        else if (ch === '}') {
+            itemStr += ch;
+            if (inVariable) {
+                inVariable = false;
+            }
+            else {
+                inObjectLevel--;
+            }
+        }
+        else if (ch === ',' && inObjectLevel === 0) {
             argsArr.push(parseArgKv(itemStr));
             itemStr = '';
         }
         else {
             itemStr += ch;
         }
+        prevCh = ch;
     }
     if (itemStr.trim()) {
         argsArr.push(parseArgKv(itemStr));
@@ -106,6 +132,12 @@ module.exports.updateBlocksLevels = function (blocks, targetsMap) {
             break;
         // Content and use command following header has same level.
         case 'content':
+        case 'if':
+        case 'elif':
+        case 'else':
+        case 'endif':
+        case 'for':
+        case 'endfor':
             // Indent description content by default
             block.level = currentLevel + 1;
             break;
@@ -154,6 +186,7 @@ module.exports.updateBlocksKeys = function (blocks) {
 
     for (const block of blocks) {
         let baseKey = '';
+        const scopeKey = stacks.join('.');
         switch (block.type) {
         case 'header':
             for (let i = block.level; i <= currentLevel; i++) {
@@ -162,12 +195,12 @@ module.exports.updateBlocksKeys = function (blocks) {
             if (block.level >= currentLevel) {
                 stacks.push(block.propertyName);
             }
-            baseKey = 'header:' + stacks.join('.');
+            baseKey = `header:${scopeKey}`;
             currentLevel = block.level;
             break;
             // Content and use command following header has same level.
         case 'content':
-            baseKey = 'content:' + stacks.join('.');
+            baseKey = `content:${scopeKey}`;
             contentKeyCountMap[baseKey] = contentKeyCountMap[baseKey] || 0;
             if (contentKeyCountMap[baseKey]) {
                 baseKey += '-' + contentKeyCountMap[baseKey];
@@ -176,7 +209,18 @@ module.exports.updateBlocksKeys = function (blocks) {
             break;
         case 'use':
         case 'import':
-            baseKey = 'use:' + stacks.join('.') + ':' + block.target;
+            baseKey = `use:${scopeKey}:${block.target}`;
+            break;
+        case 'if':
+        case 'elif':
+        case 'else':
+        case 'endif':
+        case 'for':
+        case 'endfor':
+            baseKey = `${block.type}:${scopeKey}`;
+            if (block.expr) {
+                baseKey = `${baseKey}:${block.expr}`
+            }
             break;
         }
         let keyNoDuplicate = baseKey;
@@ -193,38 +237,103 @@ module.exports.buildBlockHierarchy = function (blocks) {
 
 };
 
-module.exports.blockCompositors = {
-    header(block) {
-        /* eslint-disable-next-line */
-        const prefix = '#'.repeat(block.level) + (block.prefixCode.trim() ? block.prefixCode.trim() : '');
-        let ret = `${prefix} ${block.propertyName.trim()}(${(block.propertyType || '*').trim()})`;
-        const propertyDefault = block.propertyDefault && block.propertyDefault.trim();
-        if (propertyDefault) {
-            ret = ret + ' = ' + propertyDefault;
-        }
-        return ret + '\n';
+function formatExpr(value) {
+    return value.trim().replace(/\s+/g, ' ');
+}
+module.exports.formatExpr = formatExpr;
+
+module.exports.etplCommandCompositors = {
+    if(expr) {
+        return `{{ if: ${formatExpr(expr)} }}`;
     },
-    use(block) {
-        // Do some format and code indention
-        block.args.forEach(item => {
+    elif(expr) {
+        return `{{ elif: ${formatExpr(expr)} }}`;
+    },
+    else() {
+        return '{{ else }}';
+    },
+    endif() {
+        return '{{ /if }}';
+    },
+    for(expr) {
+        return `{{ for: ${formatExpr(expr)} }}`;
+    },
+    endfor() {
+        return '{{ /for }}';
+    },
+    use(target, args) {
+        args.forEach(item => {
             item[0].trim();
             item[1].trim();
         })
-        let argsStr = block.args.filter(item => !!item[0])
+        let argsStr = args.filter(item => !!item[0])
             .map(item => item.join(' = ')).join(',\n    ');
         if (argsStr) {
             argsStr = `\n    ${argsStr}\n`;
         }
-        return `{{ use: ${block.target.trim()}(${argsStr}) }}\n`;
+        return `{{ use: ${target.trim()}(${argsStr}) }}`;
+    }
+};
+
+module.exports.blockCompositors = {
+    header(block) {
+        /* eslint-disable-next-line */
+        // const prefix = '#'.repeat(block.level) + (block.prefixCode.trim() ? block.prefixCode.trim() : '');
+        // let ret = `${prefix} ${block.propertyName.trim()}(${(block.propertyType || '*').trim()})`;
+        // const propertyDefault = block.propertyDefault && block.propertyDefault.trim();
+        // if (propertyDefault) {
+        //     ret = ret + ' = ' + propertyDefault;
+        // }
+        // return ret;
+        return '#'.repeat(block.level) + (block.prefixCode.trim() ? '' : ' ') + block.value;
+    },
+    use(block) {
+        // Do some format and code indention
+        return module.exports.etplCommandCompositors.use(block.target, block.args);
     },
     content(block) {
-        return `${block.value.trim()}\n`;
+        // Not trim here.
+        return `${block.value}`;
+    },
+    if(block) {
+        return module.exports.etplCommandCompositors.if(block.expr);
+    },
+    elif(block) {
+        return module.exports.etplCommandCompositors.elif(block.expr);
+    },
+    else(block) {
+        return module.exports.etplCommandCompositors.else();
+    },
+    endif(block) {
+        return module.exports.etplCommandCompositors.endif();
+    },
+    for(block) {
+        return module.exports.etplCommandCompositors.for(block.expr);
+    },
+    endfor(block) {
+        return module.exports.etplCommandCompositors.endfor();
     }
 };
 
 module.exports.compositeBlocks = function (blocks) {
-    return blocks.map(block => module.exports.blockCompositors[block.type](block))
-        .join('\n');
+    let str = '';
+    let prevBlock;
+    for (let i = 0; i < blocks.length; i++) {
+        const block = blocks[i];
+        let blockStr = module.exports.blockCompositors[block.type](block);
+        if (str && !block.inline) {
+            let prefix = '\n\n';
+            // A bit format here. No extra newline between if/for block.
+            if ((prevBlock && (prevBlock.type === 'if' || prevBlock.type === 'elif' || prevBlock.type == 'else' || prevBlock.type === 'for'))
+                || block.type === 'endif' || block.type === 'endfor') {
+                prefix = '\n';
+            }
+            blockStr = prefix + blockStr;
+        }
+        str += blockStr;
+        prevBlock = block;
+    }
+    return str;
 };
 
 module.exports.compositeTargets = function (targets) {
@@ -232,5 +341,5 @@ module.exports.compositeTargets = function (targets) {
 {{ target: ${target.name.trim()} }}
 
 ${module.exports.compositeBlocks(target.blocks)}
-`).join('\n\n');
+`).join('\n\n') + '\n';
 };
diff --git a/editor/common/parseBlocks.js b/editor/common/parseBlocks.js
index a013aa7..0f0bf95 100644
--- a/editor/common/parseBlocks.js
+++ b/editor/common/parseBlocks.js
@@ -2,7 +2,7 @@ const etpl = require('../../dep/etpl');
 const fs = require('fs');
 const globby = require('globby');
 const path = require('path');
-const {updateBlocksLevels, parseHeader, parseArgs, updateBlocksKeys} = require('./blockHelper');
+const {updateBlocksLevels, parseHeader, parseArgs, updateBlocksKeys, etplCommandCompositors, formatExpr} = require('./blockHelper');
 
 const IfCommand = etpl.commandTypes.if;
 const UseCommand = etpl.commandTypes.use;
@@ -13,7 +13,17 @@ const ImportCommand = etpl.commandTypes.import;
 const TextNode = etpl.TextNode;
 const MAX_DEPTH = 10;
 
-function parseMarkDown(mdStr) {
+function hasNewlineEnd(value) {
+    const endSpaces = /\s+$/.exec(value);
+    return endSpaces && endSpaces[0].indexOf('\n') >= 0;
+}
+
+function hasNewlineBefore(value) {
+    const startSpaces = /^\s+/.exec(value);
+    return startSpaces && startSpaces[0].indexOf('\n') >= 0;
+}
+
+function parseMarkDown(mdStr, isInline) {
     const headers = [];
     const blocks = [];
     mdStr.replace(
@@ -26,6 +36,17 @@ function parseMarkDown(mdStr) {
         }
     );
 
+    function removeNewline(mdStr) {
+        // Keep leading and trailing space and remove newline. Newline will be added when compositing.
+        return mdStr.replace(/^\s+/, function (val) {
+            const idx =  val.lastIndexOf('\n');
+            return idx >= 0 ? val.substr(idx + 1) : val;
+        }).replace(/\s+$/, function (val) {
+            const idx =  val.indexOf('\n');
+            return idx >= 0 ? val.substr(0, idx) : val;
+        });
+    }
+
     if (headers.length) {
         mdStr.split(new RegExp('(?:^|\n) *(?:#{1,' + MAX_DEPTH + '}) *(?:[^#][^\n]+)', 'g'))
             .forEach((section, idx) => {
@@ -42,21 +63,24 @@ function parseMarkDown(mdStr) {
                         propertyName,
                         propertyDefault,
                         propertyType,
-                        prefixCode
+                        prefixCode,
+                        inline: false
                     });
                 }
-                const text = section.trim();
+                const text = removeNewline(section);
                 text && blocks.push({
                     type: 'content',
-                    value: text
+                    value: text,
+                    inline: false
                 });
             });
     }
     else {
-        const text = mdStr.trim();
+        const text = removeNewline(mdStr);
         text && blocks.push({
             type: 'content',
-            value: text
+            value: text,
+            inline: !hasNewlineBefore(mdStr)
         });
     }
     return blocks;
@@ -64,55 +88,55 @@ function parseMarkDown(mdStr) {
 
 function compositeIfCommand(command) {
     if (command instanceof ElseCommand && command.children[0] instanceof ElifCommand) {
-    // There is always an ElseCommand inserted between IfCommand and ElifCommand
-        if (command.children[0] instanceof ElifCommand) {
-            return compositeIfCommand(command.children[0]);
-        }
+        // There is always an ElseCommand inserted between IfCommand and ElifCommand
+        return compositeIfCommand(command.children[0]);
     }
 
-    let text = '';
+    let texts = [];
+    let isIf = false;
     if (command instanceof ElifCommand) {
-        text += `{{ elif:${command.value} }}`;
+        texts.push(etplCommandCompositors.elif(command.value));
     }
     else if (command instanceof ElseCommand) {
-        text += '{{ else }}';
+        texts.push(etplCommandCompositors.else());
     }
     // ElifCommand and ElseCommand also is subclass of IfCommand
     else if (command instanceof IfCommand) {
-        text += `{{ if: ${command.value.trim()} }}`;
+        isIf = true;
+        texts.push(etplCommandCompositors.if(command.value));
     }
 
     for (const subCmd of command.children) {
         // ElifCommand and ElseCommand also is subclass of IfCommand
         if (subCmd instanceof IfCommand) {
-            text += compositeIfCommand(subCmd);
+            texts.push(compositeIfCommand(subCmd));
         }
         else {
-            text += compositeCommand(subCmd);
+            texts.push(compositeCommand(subCmd));
         }
     }
 
-    if ((command instanceof IfCommand)
-        && !((command instanceof ElifCommand) || (command instanceof ElseCommand))) {
-        text += '{{ /if }}';
+    if (isIf) {
+        texts.push(etplCommandCompositors.endif());
     }
-    return text;
+    return texts('');
 }
 
 function compositeForCommand(command) {
-    let text = `{{ for: ${command.value} }}`;
+    let texts = [etplCommandCompositors.for(command.value)];
     for (const subCmd of command.children) {
-        text += compositeCommand(subCmd);
+        texts.push(compositeCommand(subCmd));
     }
-    text += `{{ /for }}`;
-    return text;
+    texts.push(etplCommandCompositors.endfor());
+    return texts.join('');
 }
 
 function compositeCommand(command) {
     if (command instanceof UseCommand) {
-        return `{{ use: ${command.value} }}`;
+        return etplCommandCompositors.use(command.name.trim(), parseArgs(command.args));
     }
     else if (command instanceof TextNode) {
+        // Not trim here. keep newline.
         return command.value;
     }
     else if (command instanceof IfCommand) {
@@ -127,7 +151,7 @@ function compositeCommand(command) {
 }
 
 
-function parseSingleFileBlocks(fileName, root, blocksStore) {
+function parseSingleFileBlocks(fileName, root, detailed, blocksStore) {
     const engine = new etpl.Engine({
         commandOpen: '{{',
         commandClose: '}}',
@@ -158,45 +182,124 @@ function parseSingleFileBlocks(fileName, root, blocksStore) {
             }
         }
 
-        for (const command of targetObj.children) {
-            if (command instanceof UseCommand) {
-                closeTextBlock();
-                outBlocks.push({
-                    type: 'use',
-                    target: command.name,
-                    args: parseArgs(command.args)
-                });
-            }
-            else if (command instanceof ImportCommand) {
-                closeTextBlock();
-                outBlocks.push({
-                    type: 'use',
-                    target: command.name,
-                    args: []
-                });
-            }
-            else if (command instanceof TextNode) {
-                textBlockText += command.value;
+        /**
+         * If command is inline. For example
+         * xxxxx {{ if }} xxxx {{ /if}}
+         */
+        function isInlineCommand() {
+            if (!previousCommand) {
+                return false;
             }
-            // TODO support if and for block
 
-            else if ((command instanceof IfCommand) || (command instanceof ForCommand)) {
-                textBlockText += compositeCommand(command);
+            if (previousCommand instanceof TextNode) {
+                // Prev command has newline at the end.
+                return !hasNewlineEnd(previousCommand.value);
             }
             else {
-                throw new Error(`Unkown block ${command.toString()}`);
+                // has no space between the prev command.
+                // {{for:}}{{if:}}xxx{{/if}}{{/for}}
+                return true;
             }
         }
 
-        closeTextBlock();
-
-        let contentBlockCount = 0;
-        for (let i = 0; i < outBlocks.length; i++) {
-            if (outBlocks[i].type === 'content') {
-                outBlocks[i].key = ['content', contentBlockCount++].join(':');
+        class CloseIfCommand {};
+        class CloseForCommnand {};
+
+        let previousCommand;
+
+        function addBlocks(parentCommand) {
+            for (const command of parentCommand.children) {
+                if (command instanceof UseCommand) {
+                    closeTextBlock();
+                    outBlocks.push({
+                        type: 'use',
+                        target: command.name.trim(),
+                        args: parseArgs(command.args),
+                        // use command can't be used inline
+                        inline: false
+                    });
+                    previousCommand = command;
+                }
+                else if (command instanceof ImportCommand) {
+                    closeTextBlock();
+                    outBlocks.push({
+                        type: 'use',
+                        target: command.name.trim(),
+                        args: [],
+                        // use command can't be used inline
+                        inline: false
+                    });
+                    previousCommand = command;
+                }
+                else if (command instanceof TextNode) {
+                    if (detailed) {
+                        textBlockText = command.value;
+                        closeTextBlock();
+                    }
+                    else {
+                        textBlockText += command.value;
+                    }
+                    previousCommand = command;
+                }
+                else if (command instanceof IfCommand) {
+                    if (detailed) {
+                        if ((command instanceof ElseCommand) && (command.children[0] instanceof ElifCommand)) {
+                            // There is always an ElseCommand inserted between IfCommand and ElifCommand
+                            return addBlocks(command);
+                        }
+
+                        const type = command instanceof ElseCommand
+                            ? 'else' : command instanceof ElifCommand ? 'elif' : 'if';
+
+                        outBlocks.push({
+                            type,
+                            inline: isInlineCommand(),
+                            expr: command.value && formatExpr(command.value)
+                        });
+                        previousCommand = command;
+                        addBlocks(command);
+                        if (type === 'if') {
+                            outBlocks.push({
+                                type: 'endif',
+                                inline: isInlineCommand()
+                            });
+                            previousCommand = new CloseIfCommand();
+                        }
+                    }
+                    else {
+                        // Display if, for in the text block.
+                        textBlockText += compositeCommand(command);
+                    }
+                }
+                else if (command instanceof ForCommand) {
+                    if (detailed) {
+                        outBlocks.push({
+                            type: 'for',
+                            inline: isInlineCommand(),
+                            expr: formatExpr(command.value)
+                        });
+                        previousCommand = command;
+                        addBlocks(command);
+                        previousCommand = new CloseForCommnand();
+                        outBlocks.push({
+                            type: 'endfor',
+                            inline: isInlineCommand()
+                        });
+                    }
+                    else {
+                        textBlockText += compositeCommand(command);
+                    }
+                }
+                else {
+                    throw new Error(`Unkown block ${command.toString()}`);
+                }
             }
         }
 
+        addBlocks(targetObj);
+
+        closeTextBlock();
+
         const {topLevel, topLevelHasPrefix} = updateBlocksLevels(outBlocks);
         updateBlocksKeys(outBlocks);
 
@@ -214,7 +317,14 @@ function parseSingleFileBlocks(fileName, root, blocksStore) {
     return targets;
 }
 
-module.exports.parseBlocks = async function parseBlocks(root) {
+/**
+ * @param {string} root Root folder path of option
+ * @param {boolean} detailed If include all types of blocks.
+ *      For example if, for command of etpl.
+ *      By default this will be composed into content.
+ *      But in diff mode we need everything to be block so it can be more accurate
+ */
+module.exports.parseBlocks = async function parseBlocks(root, detailed) {
     const blocksStore = {};
     const targetsMap = {};
 
@@ -226,7 +336,7 @@ module.exports.parseBlocks = async function parseBlocks(root) {
     // const files = await globby([root + '/partial/item-style.md']);
 
     for (const fileName of files) {
-        const targets = parseSingleFileBlocks(fileName, root, blocksStore);
+        const targets = parseSingleFileBlocks(fileName, root, detailed, blocksStore);
 
         for (let target of targets) {
             targetsMap[target.name] = target;
diff --git a/editor/package.json b/editor/package.json
index 5654b77..0852fff 100644
--- a/editor/package.json
+++ b/editor/package.json
@@ -18,7 +18,6 @@
     "codemirror": "^5.57.0",
     "core-js": "^3.6.5",
     "google-translate-api-browser": "^1.1.71",
-    "lodash": "^4.17.20",
     "quasar": "^1.0.0",
     "socket.io": "^2.3.0"
   },
diff --git a/editor/server/main.js b/editor/server/main.js
index d80910b..5befe15 100644
--- a/editor/server/main.js
+++ b/editor/server/main.js
@@ -63,6 +63,7 @@ const requestActions = {
             const filePath = path.resolve(__dirname, `../../${lang}/option/`, fileName.replace('.', '/')) + '.md';
             fs.writeFileSync(filePath, compositeTargets(fileTargets), 'utf-8');
         }
+        // TODO format
         console.log('Saved');
     },
 
diff --git a/en/option/component/axis-common.md b/en/option/component/axis-common.md
index 07853e6..216cf66 100644
--- a/en/option/component/axis-common.md
+++ b/en/option/component/axis-common.md
@@ -32,9 +32,8 @@ Settings related to axis line.
 ##${prefix} show(boolean) = ${defaultShow|default(true)}
 
 Set this to `false` to prevent the axis line from showing.
-
-{{ if: ${componentType} == 'xAxis' || ${componentType} == 'yAxis' }}
 
+{{ if: ${componentType} == 'xAxis' || ${componentType} == 'yAxis' }}
 ##${prefix} onZero(boolean) = true
 
 Specifies whether X or Y axis lies on the other's origin position, where value is 0 on axis. Valid only if the other axis is of value type, and contains 0 value.
@@ -68,47 +67,40 @@ Arrow offset of axis. If is array, the first number is the offset of the arrow a
 
 
 
-
 {{ target: partial-axis-common-axis-label }}
 
 #${prefix} axisLabel(Object)
 
 Settings related to axis label.
-
-{{ if: !${hideShow} }}
 
+{{ if: !${hideShow} }}
 ##${prefix} show(boolean) = ${defaultShow|default(true)}
 
 Set this to `false` to prevent the axis label from appearing.
-
-{{ /if }}
-
-{{ if: ${hasLabelInterval|default(true)} }}
+{{ /if }}
 
+{{ if: ${hasLabelInterval|default(true)} }}
 ##${prefix} interval(number|Function) = 'auto'
 
-{{ use: partial-axis-interval(
-    name="Axis label",
-    isAxisLabel=true,
-    componentType=${componentType}
-) }}
-{{ /if }}
-
-{{ if: ${hasInside|default(true)} }}
+{{ use: partial-axis-interval(
+    name = "Axis label",
+    isAxisLabel = true,
+    componentType = ${componentType}
+) }}
+{{ /if }}
 
+{{ if: ${hasInside|default(true)} }}
 ##${prefix} inside(boolean) = false
 
 Set this to `true` so the axis labels face the `inside` direction.
-{{ /if }}
-
-{{ if: ${componentType} !== 'angleAxis' }}
+{{ /if }}
 
+{{ if: ${componentType} !== 'angleAxis' }}
 ##${prefix} rotate(number) = 0
 
 Rotation degree of axis label, which is especially useful when there is no enough space for category axis.
 
 Rotation degree is from -90 to 90.
-
 {{ /if }}
 
 ##${prefix} margin(number) = 8
@@ -154,7 +146,6 @@ textStyle: {
 
 
 
-
 {{ target: partial-axis-common-axis-tick }}
 
 #${prefix} axisTick(Object)
@@ -164,28 +155,25 @@ Settings related to axis tick.
 ##${prefix} show(boolean) = ${defaultShow|default(true)}
 
 Set this to `false` to prevent the axis tick from showing.
-
-{{ if: ${hasAlignWithLabel|default(true)} }}
 
+{{ if: ${hasAlignWithLabel|default(true)} }}
 ##${prefix} alignWithLabel(boolean) = false
 
 Align axis tick with label, which is available only when `boundaryGap` is set to be `true` in category axis. See the following picture:
 
 ![600xauto](~axis-align-with-label.png)
-{{ /if }}
-
-{{ if: ${hasLabelInterval|default(true)} }}
+{{ /if }}
 
+{{ if: ${hasLabelInterval|default(true)} }}
 ##${prefix} interval(number|Function) = 'auto'
 
-{{ use: partial-axis-interval(
-    name="axisTick",
-    componentType=${componentType}
-) }}
-{{ /if }}
-
-{{ if: ${hasInside|default(true)} }}
+{{ use: partial-axis-interval(
+    name = "axisTick",
+    componentType = ${componentType}
+) }}
+{{ /if }}
 
+{{ if: ${hasInside|default(true)} }}
 ##${prefix} inside(boolean) = false
 
 Set this to `true` so the axis labels face the `inside` direction.
@@ -213,7 +201,6 @@ Color of axis label is set to be [axisLine.lineStyle.color](~${componentType}.ax
 
 
 
-
 {{ target: partial-axis-common-minor-tick }}
 
 #${prefix} minorTick(Object)
@@ -263,7 +250,6 @@ Style configuration of minor ticks lines [axisLine.lineStyle.color](~${component
 
 
 
-
 {{ target: partial-axis-common-split-line }}
 
 #${prefix} splitLine(Object)
@@ -274,15 +260,14 @@ Split line of axis in [grid](~grid) area.
 
 Set this to `false` to prevent the splitLine from showing.
 `value` type axes are shown by default, while `category` type axes are hidden.
-
-{{ if: ${hasLabelInterval|default(true)} }}
 
+{{ if: ${hasLabelInterval|default(true)} }}
 ##${prefix} interval(number|Function) = 'auto'
 
-{{ use: partial-axis-interval(
-    name="Axis splitLine",
-    componentType=${componentType}
-) }}
+{{ use: partial-axis-interval(
+    name = "Axis splitLine",
+    componentType = ${componentType}
+) }}
 {{ /if }}
 
 ##${prefix} lineStyle(Object)
@@ -315,7 +300,6 @@ splitLine: {
 
 
 
-
 {{ target: partial-axis-common-minor-split-line }}
 
 #${prefix} minorSplitLine(Object)
@@ -342,22 +326,19 @@ If show minor split lines.
 
 
 
-
 {{ target: partial-axis-common-split-area }}
 
 #${prefix} splitArea(Object)
 
 Split area of axis in [grid](~grid) area, not shown by default.
-
-
-{{ if: ${hasLabelInterval|default(true)} }}
 
+{{ if: ${hasLabelInterval|default(true)} }}
 ##${prefix} interval(number|Function) = 'auto'
 
-{{ use: partial-axis-interval(
-    name="Axis splitArea",
-    componentType=${componentType}
-) }}
+{{ use: partial-axis-interval(
+    name = "Axis splitArea",
+    componentType = ${componentType}
+) }}
 {{ /if }}
 
 ##${prefix} show(boolean) = ${defaultShow|default(false)}
@@ -379,7 +360,6 @@ SplitArea color could also be set in color array, which the split lines would ta
 
 
 
-
 {{ target: partial-axis-type-content }}
 
 Type of axis.
@@ -399,7 +379,6 @@ Option:
 
 
 
-
 {{ target: axis-common }}
 
 #${prefix} type(string) = ${axisTypeDefault|default('value')}
@@ -409,7 +388,6 @@ Option:
 ) }}
 
 {{ if: ${componentType} !== 'angleAxis' }}
-
 #${prefix} name(string)
 
 Name of axis.
@@ -426,8 +404,12 @@ Location of axis name.
 #${prefix} nameTextStyle(Object)
 
 Text style of axis name.
-
-{{ use: partial-text-style(prefix='#' + ${prefix}, name="axis name") }}
+
+{{ use: partial-text-style(
+    prefix = '#' + ${prefix},
+    name = "axis name"
+) }}
+
 <!-- Overwrite color -->
 
 ##${prefix} color(Color)
@@ -446,7 +428,6 @@ Rotation of axis name.
 
 Set this to `true` to invert the axis.
 This is a new option available from Echarts 3 and newer.
-
 {{ /if }}
 
 #${prefix} boundaryGap(boolean|Array)
@@ -573,23 +554,21 @@ Base of logarithm, which is valid only for numeric axes with [type](~${component
     componentType = ${componentType}
 ) }}
 
-{{ if: ${hasSplitLineAndArea} }}
-
-{{ use: partial-axis-common-split-line(
-    prefix=${prefix},
-    componentType=${componentType}
-) }}
-
-{{ use: partial-axis-common-minor-split-line(
-    prefix=${prefix},
-    componentType=${componentType}
-) }}
-
-{{ use: partial-axis-common-split-area(
-    prefix=${prefix},
-    componentType=${componentType}
-) }}
-
+{{ if: ${hasSplitLineAndArea} }}
+{{ use: partial-axis-common-split-line(
+    prefix = ${prefix},
+    componentType = ${componentType}
+) }}
+
+{{ use: partial-axis-common-minor-split-line(
+    prefix = ${prefix},
+    componentType = ${componentType}
+) }}
+
+{{ use: partial-axis-common-split-area(
+    prefix = ${prefix},
+    componentType = ${componentType}
+) }}
 {{ /if }}
 
 #${prefix} data(Array)
@@ -631,25 +610,21 @@ Text style of the category.
 ) }}
 
 {{ if: !${noAxisPointer} }}
-
 #${prefix} axisPointer(Object)
 
 axisPointer settings on the axis.
-
-{{ use: partial-axisPointer-common(
-    prefix="#" + ${prefix},
-    galleryViewPath=${galleryViewPath},
-    galleryEditorPath=${galleryEditorPath}
-) }}
-{{ /if }}
 
+{{ use: partial-axisPointer-common(
+    prefix = "#" + ${prefix}
+) }}
+{{ /if }}
 
 
 
 {{ target: partial-axis-interval }}
 
-Interval of ${name}, which is available in category axis. {{ if: !${isAxisLabel} }} is set to be the same as [axisLabel.interval](~${componentType}.axisLabel.interval) by default.{{ /if }}
-
+Interval of ${name}, which is available in category axis. {{ if: !${isAxisLabel} }} is set to be the same as [axisLabel.interval](~${componentType}.axisLabel.interval) by default.{{ /if }}
+
 It uses a strategy that labels do not overlap by default.
 
 You may set it to be 0 to display all labels compulsively.
@@ -664,7 +639,6 @@ The first parameter is index of category, and the second parameter is the name o
 
 
 
-
 {{ target: axis-common-formatter-desc }}
 
 Formatter of axis label, which supports string template and callback function.
diff --git a/en/option/component/brush.md b/en/option/component/brush.md
index 44954ad..5d7e289 100644
--- a/en/option/component/brush.md
+++ b/en/option/component/brush.md
@@ -218,7 +218,6 @@ z-index of brush cover box. It can be adjust when incorrect overlap occurs.
 
 
 
-
 {{ target: partial-brush-coord }}
 
 `brush` can be set to be *global*, or *belonging to a particular coordinate*.
@@ -277,7 +276,6 @@ option = {
 
 
 
-
 {{ target: partial-brush-brushLink }}
 
 Links interaction between selected items in different series.
@@ -315,7 +313,6 @@ option = {
 
 
 
-
 {{ target: partial-brush-throttle }}
 
 By default, `brushSelected` is always triggered when selection-box is selected or moved, to tell the outside about the event.
@@ -331,7 +328,6 @@ In this [example](${galleryViewPath}scatter-map-brush&edit=1&reset=1), `debounce
 
 
 
-
 {{ target: partial-brush-toolbox-buttons }}
 
 Buttons in toolbox that is related to brush includes:
@@ -345,7 +341,6 @@ Buttons in toolbox that is related to brush includes:
 
 
 
-
 {{ target: partial-brush-type }}
 
 + `'rect'`: for selection-box in rectangle shape;
diff --git a/en/option/component/data-zoom.md b/en/option/component/data-zoom.md
index f3ee924..83fb796 100644
--- a/en/option/component/data-zoom.md
+++ b/en/option/component/data-zoom.md
@@ -129,7 +129,6 @@ What is the exact meaning of `start: 20, end: 80` in `dataZoomY` in the example
 
 
 
-
 {{ target: partial-data-zoom-axis-example }}
 
 If it is set as a single `number`, one axis is controlled, while if it is set as an `Array` , multiple axes are controlled.
@@ -159,7 +158,6 @@ option: {
 
 
 
-
 {{ target: partial-data-zoom-common }}
 
 ## xAxisIndex(number|Array) = null
@@ -310,7 +308,6 @@ Take a scenario as an example. When we are using dynamic data (update data perio
 
 
 
-
 {{ target: partial-data-zoom-filterMode }}
 
 Generally `dataZoom` component zoom or roam coordinate system through data filtering and set the windows of axes internally.
diff --git a/en/option/component/timeline.md b/en/option/component/timeline.md
index 6d64031..4531d75 100644
--- a/en/option/component/timeline.md
+++ b/en/option/component/timeline.md
@@ -417,7 +417,6 @@ as follows:
 
 
 
-
 {{ target: partial-timeline-label }}
 
 #${prefix} show(boolean) = true
@@ -436,17 +435,18 @@ Rotation angle of `label`, in which positive values refer to counter clockwise r
 
 {{ use: axis-common-formatter-desc() }}
 
-{{ if: ${state} }}
-{{ use: partial-text-style(
-    prefix=${prefix},
-    name="timeline.lable." + ${state},
-    defaultColor=${textStyleDefaultColor}
-) }}
-{{ else }}
-{{ use: partial-text-style(
-    prefix=${prefix},
-    name="timeline.lable",
-    defaultColor=${textStyleDefaultColor}
-) }}
+{{ if: ${state} }}
+{{ use: partial-text-style(
+    prefix = ${prefix},
+    name = "timeline.lable." + ${state},
+    defaultColor = ${textStyleDefaultColor}
+) }}
+
+{{ else }}
+{{ use: partial-text-style(
+    prefix = ${prefix},
+    name = "timeline.lable",
+    defaultColor = ${textStyleDefaultColor}
+) }}
 {{ /if }}
 
diff --git a/en/option/component/toolbox.md b/en/option/component/toolbox.md
index d16900a..50a090c 100644
--- a/en/option/component/toolbox.md
+++ b/en/option/component/toolbox.md
@@ -46,7 +46,6 @@ Padding of text area.
 
 
 
-
 {{ target: feature-common }}
 
 #### show(boolean) = true
@@ -66,7 +65,6 @@ Whether to show the tool.
 
 
 
-
 {{ target: component-toolbox }}
 
 # toolbox(Object)
diff --git a/en/option/component/visual-map.md b/en/option/component/visual-map.md
index 158b2b6..1fd0efd 100644
--- a/en/option/component/visual-map.md
+++ b/en/option/component/visual-map.md
@@ -66,7 +66,6 @@ series: {
 
 
 
-
 {{ target: partial-visual-map-range }}
 
 `${rangeType}` could customize visual channels both in series (by [${visualMapName}.seriesIndex](~${visualMapName}.seriesIndex)) and in `${visualMapName}` itself.
@@ -244,7 +243,6 @@ visualMap: {
 
 
 
-
 {{ target: partial-visual-map-merge }}
 
 **✦ How to modity configurations of vsiual encoding? ✦**
@@ -282,7 +280,6 @@ chart.setOption(option); // set the modified option back.
 
 
 
-
 {{ target: partial-visual-map-inRange-outOfRange }}
 
 ##${prefix} inRange(Object)
@@ -329,7 +326,6 @@ Possiable visual channels includes:
 
 
 
-
 {{ target: partial-visual-map-common }}
 
 ## show(boolean) = true
diff --git a/en/option/partial/1d-data.md b/en/option/partial/1d-data.md
index 819d336..051d001 100644
--- a/en/option/partial/1d-data.md
+++ b/en/option/partial/1d-data.md
@@ -32,7 +32,6 @@ where `params` is the single dataset needed by formatter, which is formed as:
 
 
 
-
 {{ target: partial-1d-data-desc }}
 
 Data array of ${name} series, which can be a single data value, like:
diff --git a/en/option/partial/2d-data.md b/en/option/partial/2d-data.md
index 9edf64e..5732c94 100644
--- a/en/option/partial/2d-data.md
+++ b/en/option/partial/2d-data.md
@@ -32,7 +32,6 @@ where `params` is the single dataset needed by formatter, which is formed as:
 
 
 
-
 {{ target: partial-seriesLayoutBy }}
 
 ## seriesLayoutBy(string) = 'column'
@@ -46,7 +45,6 @@ Check this [example](${galleryEditorPath}dataset-series-layout-by).
 
 
 
-
 {{ target: partial-datasetIndex }}
 
 ## datasetIndex(number) = 0
@@ -55,7 +53,6 @@ If [series.data](~series.data) is not specified, and [dataset](~dataset) exists,
 
 
 
-
 {{ target: partial-2d-data-desc }}
 
 Data array of series, which can be in the following forms:
diff --git a/en/option/partial/animation.md b/en/option/partial/animation.md
index 4ca3046..87725ed 100644
--- a/en/option/partial/animation.md
+++ b/en/option/partial/animation.md
@@ -30,9 +30,8 @@ animationDurationUpdate: function (idx) {
 #${prefix} animationEasingUpdate(string) = ${defaultAnimationEasingUpdate|default('cubicOut')}
 
 Easing method used for animation.
-
-{{ if: !${noAnimationDelay} }}
 
+{{ if: !${noAnimationDelay} }}
 #${prefix} animationDelayUpdate(number|Function) = 0
 
 Delay before updating animation, which supports callback function for different data to have different animation effects.
@@ -50,7 +49,6 @@ See [this example](${galleryEditorPath}bar-animation-delay) for more information
 
 
 
-
 {{ target: partial-animation-init }}
 
 #${prefix} animationDuration(number|Function) = ${defaultAnimationDuration|default(1000)}
@@ -67,10 +65,8 @@ animationDuration: function (idx) {
 #${prefix} animationEasing(string) = ${defaultAnimationEasing|default('cubicOut')}
 
 Easing method used for the first animation. Varied easing effects can be found at [easing effect example](${galleryEditorPath}line-easing).
-
-
-{{ if: !${noAnimationDelay} }}
 
+{{ if: !${noAnimationDelay} }}
 #${prefix} animationDelay(number|Function) = 0
 
 Delay before updating the first animation, which supports callback function for different data to have different animation effect.
diff --git a/en/option/partial/area-style.md b/en/option/partial/area-style.md
index af5caa5..f37f737 100644
--- a/en/option/partial/area-style.md
+++ b/en/option/partial/area-style.md
@@ -1,24 +1,21 @@
 
 {{ target: partial-area-style }}
 
-#${prefix} color(Color) = {{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'adaptive'{{ /if }}
+#${prefix} color(Color) ={{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'adaptive'{{ /if }}
 
 Fill color. {{ if: ${useColorPalatte} }} Color is taken from [option.color Palette](~color) by default. {{ /if }}
 
 {{ use: partial-color-desc() }}
 
-{{ if: ${hasCallback} }}
+{{ if: ${hasCallback} }}
 Supports callback functions, in the form of:
 ```js
 (params: Object) => Color
 ```
 Input parameters are `seriesIndex`, `dataIndex`, `data`, `value`, and etc. of data item.
-{{ /if }}
-
-
-
-{{ if: ${hasOrigin} }}
+{{ /if }}
 
+{{ if: ${hasOrigin} }}
 #${prefix|default('##')} origin(string) = 'auto'
 
 Origin position of area.
diff --git a/en/option/partial/axisPointer-common.md b/en/option/partial/axisPointer-common.md
index 17fad86..0d02fca 100644
--- a/en/option/partial/axisPointer-common.md
+++ b/en/option/partial/axisPointer-common.md
@@ -75,7 +75,6 @@ In value axis and time axis, if [snap](~xAxis.axisPointer.snap) is set as true,
 
 
 
-
 {{ target: partial-axisPointer-common }}
 
 #${prefix} show(boolean) = false
@@ -150,7 +149,6 @@ Throttle rate of trigger view update when dragging handle, in ms. Increase the v
 
 
 
-
 {{ target: partial-axisPointer-tooltip-shared }}
 
 #${prefix} snap(boolean)
@@ -266,7 +264,6 @@ It is valid when [axisPointer.type](~tooltip.axisPointer.type) is `'shadow'`.
 
 
 
-
 {{ target: partial-formatter-params-axisPointer }}
 
 Each item also includes axis infomation:
diff --git a/en/option/partial/barGrid.md b/en/option/partial/barGrid.md
index f337747..f7c84ae 100644
--- a/en/option/partial/barGrid.md
+++ b/en/option/partial/barGrid.md
@@ -62,14 +62,12 @@ The bar gap of a single series, defaults to be `20%` of the category gap, can be
 
 
 
-
 {{ target: partial-barGrid-share-desc }}
 
 In a single coodinate system, this attribute is shared by multiple `'${seriesType}'` series. This attribute should be set on the last `'${seriesType}'` series in the coodinate system, then it will be adopted by all `'${seriesType}'` series in the coordinate system.
 
 
 
-
 {{ target: partial-barGrid-value-absolute-or-percent }}
 
 Can be an absolute value like `40` or a percent value like `'60%'`. The percent is based on the calculated category width.
diff --git a/en/option/partial/circular-layout.md b/en/option/partial/circular-layout.md
index ee8a2ac..a0d52e3 100644
--- a/en/option/partial/circular-layout.md
+++ b/en/option/partial/circular-layout.md
@@ -23,7 +23,8 @@ Radius of ${componentName}. Value can be:
 
 + `number`: Specify outside radius directly.
 + `string`: For example, `'20%'`, means that the outside radius is 20% of the viewport size (the little one between width and height of the chart container).
-{{ if: !${disableArray} }}
+
+{{ if: !${disableArray} }}
 + `Array.<number|string>`: The first item specifies the inside radius, and the second item specifies the outside radius. Each item follows the definitions above.
 {{ /if }}
 
diff --git a/en/option/partial/component-common-style.md b/en/option/partial/component-common-style.md
index 4af6f5e..4a379cb 100644
--- a/en/option/partial/component-common-style.md
+++ b/en/option/partial/component-common-style.md
@@ -6,29 +6,31 @@
 Background color of ${componentName}, which is transparent by default.
 
 > Color can be represented in RGB, for example `'rgb(128, 128, 128)'`. RGBA can be used when you need alpha channel, for example `'rgba(128, 128, 128, 0.5)'`. You may also use hexadecimal format, for example `'#ccc'`.
-
-{{ if: ${needShow} }}
+
+{{ if: ${needShow} }}
 **Attention**: Works only if `show: true` is set.
 {{ /if }}
 
 #${prefix} borderColor(Color) = '#ccc'
 
 Border color of ${componentName}. Support the same color format as backgroundColor.
-
-{{ if: ${needShow} }}
+
+{{ if: ${needShow} }}
 **Attention**: Works only if `show: true` is set.
 {{ /if }}
 
 #${prefix} borderWidth(number) = 1
 
 Border width of ${componentName}.
-
-{{ if: ${needShow} }}
+
+{{ if: ${needShow} }}
 **Attention**: Works only if `show: true` is set.
-{{ /if }}
-
-{{ if: ${hasBorderRadius} }}
-{{ use: partial-border-radius(prefix=${prefix}) }}
+{{ /if }}
+
+{{ if: ${hasBorderRadius} }}
+{{ use: partial-border-radius(
+    prefix = ${prefix}
+) }}
 {{ /if }}
 
 {{ use: partial-style-shadow(
@@ -38,7 +40,6 @@ Border width of ${componentName}.
 
 
 
-
 {{ target: partial-border-radius }}
 
 #${prefix} ${propName|default('borderRadius')}(number|Array) = 0
diff --git a/en/option/partial/coord-sys.md b/en/option/partial/coord-sys.md
index ccaad2c..90ddaeb 100644
--- a/en/option/partial/coord-sys.md
+++ b/en/option/partial/coord-sys.md
@@ -4,50 +4,44 @@
 ## coordinateSystem(string) = ${coordSysDefault}
 
 The coordinate used in the series, whose options are:
-
-{{ if: ${none} }}
+
+{{ if: ${none} }}
 + `null` or `'none'`
 
     No coordinate.
-{{ /if }}
-
-{{ if: ${cartesian2d} }}
-
+{{ /if }}
+
+{{ if: ${cartesian2d} }}
 + `'cartesian2d'`
 
     Use a two-dimensional rectangular coordinate (also known as Cartesian coordinate), with [xAxisIndex](~series-${seriesType}.xAxisIndex) and [yAxisIndex](~series-${seriesType}.yAxisIndex) to assign the corresponding axis component.
-{{ /if }}
-
-{{ if: ${polar} }}
-
+{{ /if }}
+
+{{ if: ${polar} }}
 + `'polar'`
 
     Use polar coordinates, with [polarIndex](~series-${seriesType}.polarIndex) to assign the corresponding polar coordinate component.
-{{ /if }}
-
-{{ if: ${geo} }}
-
+{{ /if }}
+
+{{ if: ${geo} }}
 + `'geo'`
 
     Use geographic coordinate, with [geoIndex](~series-${seriesType}.geoIndex) to assign the corresponding geographic coordinate components.
-{{ /if }}
-
-{{ if: ${parallel} }}
-
+{{ /if }}
+
+{{ if: ${parallel} }}
 + `'parallel'`
 
     Use parallel coordinates, with [parallelIndex](~series-${seriesType}.parallelIndex) to assign the corresponding parallel coordinate components.
-{{ /if }}
-
-{{ if: ${none} }}
-
+{{ /if }}
+
+{{ if: ${none} }}
 + `'none'`
 
     Do not use coordinate system.
-{{ /if }}
-
-{{ if: ${cartesian2d} }}
+{{ /if }}
 
+{{ if: ${cartesian2d} }}
 ## xAxisIndex(number) = 0
 
 Index of [x axis](~xAxis) to combine with, which is  useful for multiple x axes in one chart.
@@ -55,44 +49,29 @@ Index of [x axis](~xAxis) to combine with, which is  useful for multiple x axes
 ## yAxisIndex(number) = 0
 
 Index of [y axis](~yAxis) to combine with, which is  useful for multiple y axes in one chart.
-{{ /if }}
-
-
-
-{{ if: ${polar} }}
+{{ /if }}
 
+{{ if: ${polar} }}
 ## polarIndex(number) = 0
 
 Index of [polar coordinate](~polar) to combine with, which is useful for multiple polar axes in one chart.
-
-{{ /if }}
-
-
-
-{{ if: ${geo} }}
+{{ /if }}
 
+{{ if: ${geo} }}
 ## geoIndex(number) = 0
 
 Index of [geographic coordinate](~geo) to combine with, which is useful for multiple geographic axes in one chart.
-
-{{ /if }}
-
-
-
-{{ if: ${parallel} }}
+{{ /if }}
 
+{{ if: ${parallel} }}
 ## parallelIndex(number) = 0
 
 Index of [parallel coordinates](~parallel) to combine with, which is useful for multiple parallel axes in one chart.
-
-{{ /if }}
-
-
-{{ if: ${calendar} }}
+{{ /if }}
 
+{{ if: ${calendar} }}
 ## calendarIndex(number) = 0
 
 Index of [calendar coordinates](~calendar) to combine with, which is useful for multiple calendar coordinates in one chart.
-
 {{ /if }}
 
diff --git a/en/option/partial/data-transform.md b/en/option/partial/data-transform.md
index 0fa983e..82a520a 100644
--- a/en/option/partial/data-transform.md
+++ b/en/option/partial/data-transform.md
@@ -5,7 +5,6 @@ See the tutorial of [datat transform](tutorial.html#Data%20Transform).
 
 
 
-
 {{ target: partial-data-transform-print }}
 
 ### print(boolean) = false
diff --git a/en/option/partial/encode-dimensions.md b/en/option/partial/encode-dimensions.md
index eb3e83f..85b3f99 100644
--- a/en/option/partial/encode-dimensions.md
+++ b/en/option/partial/encode-dimensions.md
@@ -133,7 +133,6 @@ var option = {
 
 
 
-
 {{ target: partial-series-dimensions }}
 
 #${prefix} dimensions(Array)
diff --git a/en/option/partial/formatter.md b/en/option/partial/formatter.md
index 3dc7bc4..2d0b750 100644
--- a/en/option/partial/formatter.md
+++ b/en/option/partial/formatter.md
@@ -34,10 +34,12 @@
     dimensionIndex: number,
     // Color of data
     color: string,
-{{ for: ${extra} as ${obj}, ${name} }}{{ if: ${extra}.hasOwnProperty(${name}) }}
+
+{{ for: ${extra} as ${obj}, ${name} }}{{ if: ${extra}.hasOwnProperty(${name}) }}
     // ${obj.desc}
     ${name}: ${obj.type},
-{{ /if }}{{ /for }}
+{{ /if }}{{ /for }}
+
 }
 ```
 
diff --git a/en/option/partial/icon.md b/en/option/partial/icon.md
index ddfaf76..6f85374 100644
--- a/en/option/partial/icon.md
+++ b/en/option/partial/icon.md
@@ -9,7 +9,6 @@ Icon types provided by ECharts includes
 
 
 
-
 {{ target: partial-icon-image-path }}
 
 It can be set to an image with `'image://url'` , in which URL is the link to an image, or `dataURI` of an image.
@@ -31,14 +30,12 @@ A `dataURI` example:
 
 
 
-
 {{ target: partial-icon-buildin }}
 
 `'circle'`, `'rect'`, `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`, `'none'`
 
 
 
-
 {{ target: partial-icon-path }}
 
 Icons can be set to arbitrary vector path via `'path://'` in ECharts. As compared with a raster image, vector paths prevent jagging and blurring when scaled, and have better control over changing colors. The size of the vector icon will be adapted automatically. Refer to [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData) for more information about the format of the path. You may export vector paths from tools like Adobe 
diff --git a/en/option/partial/item-style.md b/en/option/partial/item-style.md
index 910b3e2..a899de6 100644
--- a/en/option/partial/item-style.md
+++ b/en/option/partial/item-style.md
@@ -5,7 +5,6 @@ Graphic style of ${name}, `emphasis` is the style when it is highlighted, like b
 
 
 
-
 {{ target: partial-item-style }}
 
 #${prefix} color(Color{{ if: ${hasCallback} }}|Function{{ /if }})(*) = ${defaultColor|default(null)}
@@ -14,7 +13,7 @@ ${name} color. {{ if: ${useColorPalatte} }} Color is taken from [option.color Pa
 
 {{ use: partial-color-desc() }}
 
-{{ if: ${hasCallback} }}
+{{ if: ${hasCallback} }}
 Supports callback functions, in the form of:
 ```js
 (params: Object) => Color
diff --git a/en/option/partial/label.md b/en/option/partial/label.md
index 6d55aaf..13dcb09 100644
--- a/en/option/partial/label.md
+++ b/en/option/partial/label.md
@@ -5,18 +5,16 @@ Text label of ${name}, to explain some data information about graphic item like
 
 
 
-
 {{ target: partial-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default("false")}
 
 Whether to show label.
-
-{{ if: !${noPosition} }}
 
+{{ if: !${noPosition} }}
 #${prefix} position(string|Array) = ${defaultPosition}
 
-{{ use: partial-label-position }}
+{{ use: partial-label-position() }}
 {{ /if }}
 
 #${prefix} distance(number) = 5
@@ -24,9 +22,8 @@ Whether to show label.
 Distance to the host graphic element. Works when position is string value (like `'top'`、`'insideRight'`).
 
 See: [label position](${galleryEditorPath}doc-example/label-position).
-
-{{ if: !${noRotate} }}
 
+{{ if: !${noRotate} }}
 #${prefix} rotate(number) = ${defaultRotate}
 
 Rotate label, from -90 degree to 90, positive value represents rotate anti-clockwise.
@@ -37,36 +34,33 @@ See: [label rotation](${galleryEditorPath}bar-label-rotation).
 #${prefix} offset(Array)
 
 Whether to move text slightly. For example: `[30, 40]` means move `30` horizontally and move `40` vertically.
-{{ if: ${formatter} }}
 
+{{ if: ${formatter} }}
 #${prefix} formatter(string|Function)
 
-{{ use: partial-2d-data-label-formatter }}
-{{ elif:${formatter1d} }}
+{{ use: partial-2d-data-label-formatter() }}
 
+{{ elif: ${formatter1d} }}
 #${prefix} formatter(string|Function)
 
-{{ use: partial-1d-data-label-formatter }}
-{{ /if }}
-
-
-{{ if: !${noTextStyle} }}
-{{ use: partial-text-style(
-    prefix=${prefix},
-    noAlign=${noAlign},
-    noVerticalAlign=${noVerticalAlign},
-    name=${name},
-    defaultColor=${defaultColor},
-    defaultFontSize=${defaultFontSize},
-    noRich=${noRich},
-    noBox=${noBox},
-    enableAutoColor=true
-) }}
-{{ /if }}
-
-
-{{ if: ${ellipsis} }}
+{{ use: partial-1d-data-label-formatter() }}
+{{ /if }}
 
+{{ if: !${noTextStyle} }}
+{{ use: partial-text-style(
+    prefix = ${prefix},
+    noAlign = ${noAlign},
+    noVerticalAlign = ${noVerticalAlign},
+    name = ${name},
+    defaultColor = ${defaultColor},
+    defaultFontSize = ${defaultFontSize},
+    noRich = ${noRich},
+    noBox = ${noBox},
+    enableAutoColor = true
+) }}
+{{ /if }}
+
+{{ if: ${ellipsis} }}
 #${prefix} ellipsis(boolean) = true
 
 When the text is overflow, whether to replace the excess part with apostrophe.
@@ -74,7 +68,6 @@ When the text is overflow, whether to replace the excess part with apostrophe.
 
 
 
-
 {{ target: partial-label-position }}
 
 Label position.
diff --git a/en/option/partial/line-style.md b/en/option/partial/line-style.md
index 4409de3..8d3fb7f 100644
--- a/en/option/partial/line-style.md
+++ b/en/option/partial/line-style.md
@@ -1,11 +1,11 @@
 
 {{ target: partial-line-style }}
 
-#${prefix} color(Color) = {{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'self-adaptive'{{ /if }}
+#${prefix} color(Color) ={{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'self-adaptive'{{ /if }}
 
-${name}Line color. {{ if: ${useColorPalatte} }} Color is taken from [option.color Palette](~color) by default. {{ /if }}
-
-{{ if: ${hasCallback} }}
+${name}Line color. {{ if: ${useColorPalatte} }} Color is taken from [option.color Palette](~color) by default. {{ /if }}
+
+{{ if: ${hasCallback} }}
 Supports callback functions, in the form of:
 ```js
 (params: Object) => Color
@@ -36,7 +36,6 @@ Options are:
 ) }}
 
 {{ if: ${hasCurveness} }}
-
 #${prefix} curveness(number) = 0
 
 Edge curvature, which supports value from 0 to 1. The larger the value, the greater the curvature.
diff --git a/en/option/partial/mark-area.md b/en/option/partial/mark-area.md
index 5d47fe8..0cb0bef 100644
--- a/en/option/partial/mark-area.md
+++ b/en/option/partial/mark-area.md
@@ -42,10 +42,12 @@ Style of the mark area.
 The scope of the area is defined by `data`, which is an array with two item, representing the left-top point and the right-bottom point of rectangle area. Each item can be defined as follows:
 
 1. Specify the coordinate in screen coordinate system using [x](~series-${seriesType}.markArea.data.0.x), [y](~series-${seriesType}.markArea.data.0.y), where the unit is pixel (e.g., the value is `5`), or percent (e.g., the value is `'35%'`).
+
 {{ if: ${hasCoord} }}
 2. Specify the coordinate in data coordinate system (i.e., cartesian) using
 [coord](~series-${seriesType}.markArea.data.0.coord), which can be also set as `'min'`, `'max'`, `'average'` (e.g, `coord: [23, 'min']`, or `coord: ['average', 'max']`).
 {{ /if }}
+
 {{ if: ${hasType} }}
 3. Locate the point on the min value or max value of `series.data` using [type](~series-${seriesType}.markArea.data.0.type), where [valueIndex](~series-${seriesType}.markArea.data.0.valueIndex) or [valueDim](~series-${seriesType}.markPoint.data.0.valueDim) can be used to specify the dimension on which the min, max or average are calculated.
 4. If in cartesian, you can only specify `xAxis` or `yAxis` to define a mark area based on only X or Y axis, see sample [scatter-weight](${galleryEditorPath}scatter-weight)
@@ -54,11 +56,12 @@ The scope of the area is defined by `data`, which is an array with two item, rep
 The priority follows as above if more than one above definition used.
 
 {{ if: ${hasType} }}
-
 {{ /if }}
+
 ```
 data: [
-    {{ if: ${hasType} }}
+
+{{ if: ${hasType} }}
     [
         {
             name: 'From average to max',
@@ -68,7 +71,7 @@ data: [
             type: 'max'
         }
     ],
-    {{ /if }}{{ if: ${hasCoord} }}
+{{ /if }}{{ if: ${hasCoord} }}
     [
         {
             name: 'Mark area between two points in data coordiantes',
@@ -94,7 +97,9 @@ data: [
             coord: ['max', 'max']
         }
     ],
-    {{ /if }}[
+{{ /if }}
+
+[
         {
             name: 'Mark area in two screen points',
             x: 100,
@@ -140,11 +145,9 @@ Specify the right-bottom point.
 
 
 
-
 {{ target: mark-area-data-item-item }}
 
 {{ if: ${hasType} }}
-
 #${prefix} type(string)
 
 Specify this item is on min or max or average value.
@@ -154,8 +157,8 @@ Specify this item is on min or max or average value.
 + `'max'` min value.
 + `'average'` average value.
 {{ /if }}
-{{ if: ${hasCoord} }}
 
+{{ if: ${hasCoord} }}
 #${prefix} valueIndex(number)
 
 Specify the dimension on which min, max, average are calculated,
@@ -172,7 +175,6 @@ The value can be the name of the dimension (for example, the value can be `x`, `
 #${prefix} coord(Array)
 
 The format is [start coordinate, end coordinate], where the coordinate system can be `x`, `y` on [cartesian](~grid), or `radius`, `angle` on [polar](~polar).
-
 {{ /if }}
 
 #${prefix} name(string) = '${name}'
diff --git a/en/option/partial/mark-line.md b/en/option/partial/mark-line.md
index 91d41d9..b7f31f8 100644
--- a/en/option/partial/mark-line.md
+++ b/en/option/partial/mark-line.md
@@ -59,21 +59,25 @@ Mark line style.
 Data array of marking line. Every array item can be an array of one or two values, representing starting and ending point of the line, and every item is an object. Here are several ways to assign the positions of starting and ending point.
 
 1. Assign coordinate according to container with [x](~series-${seriesType}.markLine.data.0.x), [y](~series-${seriesType}.markLine.data.0.y) attribute, in which pixel values and percentage are supported.
-{{ if: ${hasCoord} }}
+
+{{ if: ${hasCoord} }}
 2. Assign coordinate position with [coord](~series-${seriesType}.markLine.data.0.coord) attribute, in which `'min'`, `'max'`, `'average'` are supported for each dimension.
-{{ /if }}{{ if: ${hasType} }}
+{{ /if }}{{ if: ${hasType} }}
 3. Use [type](~series-${seriesType}.markLine.data.0.type) attribute to mark the maximum and minimum values in the series, in which [valueIndex](~series-${seriesType}.markLine.data.0.valueIndex) or [valueDim](~series-${seriesType}.markLine.data.0.valueDim) can be used to assign the dimension.
 
 4. You may also create a mark line in Cartesian coordinate at a specific position in X or Y axis by assigning `xAxis` or `yAxis`. See [scatter-weight](${galleryEditorPath}scatter-weight) for example.
-{{ /if }}
+{{ /if }}
+
 When multiple attributes exist, priority is as the above order.
-
-{{ if: ${hasType} }}
+
+{{ if: ${hasType} }}
 You may also set the type of mark line through `type`, stating whether it is for the maximum value or average value. Likewise, dimensions can be assigned through `valueIndex`.
-{{ /if }}
+{{ /if }}
+
 ```
 data: [
-    {{ if: ${hasType} }}{
+
+{{ if: ${hasType} }}{
         name: 'average line',
         // 'average', 'min', and 'max' are supported
         type: 'average'
@@ -92,7 +96,7 @@ data: [
             type: 'max'
         }
     ],
-    {{ /if }}{{ if: ${hasCoord} }}[
+{{ /if }}{{ if: ${hasCoord} }}[
         {
             name: 'Markline between two points',
             coord: [10, 20]
@@ -107,7 +111,9 @@ data: [
     }, {
         type: 'max'
     }],
-    {{ /if }}[
+{{ /if }}
+
+[
         {
             name: 'Mark line between two points',
             x: 100,
@@ -153,7 +159,6 @@ Data of the ending point.
 
 
 
-
 {{ target: mark-line-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default(true)}
@@ -185,11 +190,9 @@ The distance between labels and mark lines. If it's an array, then the first ele
 
 
 
-
 {{ target: mark-line-data-item-item }}
 
 {{ if: ${hasType} }}
-
 #${prefix} type(string)
 
 Special label types, are used to label maximum value, minimum value and so on.
@@ -199,9 +202,9 @@ Special label types, are used to label maximum value, minimum value and so on.
 + `'max'` maximum value.
 + `'average'` average value.
 + `'median'` median value.
-{{ /if }}
-{{ if: ${hasCoord} }}
+{{ /if }}
 
+{{ if: ${hasCoord} }}
 #${prefix} valueIndex(number)
 
 Works only when [type](~series-${seriesType}.markLine.data.type) is assigned. It is used to state the dimension used to calculate maximum value or minimum value. It may be `0` (for xAxis, or radiusAxis), or `1` (for yAxis, or angleAxis). Dimension of the first numeric axis is used by default.
@@ -213,9 +216,8 @@ Works only when [type](~series-${seriesType}.markLine.data.type) is assigned. It
 #${prefix} coord(Array)
 
 Coordinates of the starting point or ending point, whose format depends on the coordinate of the series. It can be `x`, and `y` for [rectangular coordinates](~grid), or `radius`, and `angle` for [polar coordinates](~polar).
-
-{{ use: marker-coord-explain }}
-
+
+{{ use: marker-coord-explain() }}
 {{ /if }}
 
 #${prefix} name(string) = '${name}'
diff --git a/en/option/partial/mark-point.md b/en/option/partial/mark-point.md
index a62fcb6..9ff5728 100644
--- a/en/option/partial/mark-point.md
+++ b/en/option/partial/mark-point.md
@@ -54,20 +54,22 @@ Mark point style.
 
 Data array for mark points, each of which is an object. Here are some ways to assign mark point position.
 1. Assign coordinate according to container with [x](~series-${seriesType}.markPoint.data.x), [y](~series-${seriesType}.markPoint.data.y) attribute, in which pixel values and percentage are supported.
-{{ if: ${hasCoord} }}
+
+{{ if: ${hasCoord} }}
 2. Assign coordinate position with [coord](~series-${seriesType}.markPoint.data.coord) attribute, in which `'min'`, `'max'`, `'average'` are supported for each dimension.
-{{ /if }}{{ if: ${hasType} }}
+{{ /if }}{{ if: ${hasType} }}
 3. Use [type](~series-${seriesType}.markPoint.data.type) attribute to mark the maximum and minimum values in the series, in which [valueIndex](~series-${seriesType}.markPoint.data.valueIndex) or [valueDim](~series-${seriesType}.markPoint.data.valueDim) can be used to assign the dimension.
-{{ /if }}
+{{ /if }}
+
 When multiple attributes exist, priority is as the above order.
 
 **For example: **
 ```js
-data: [{{ if: ${hasType} }}
+data: [{{ if: ${hasType} }}
     {
         name: 'maximum',
         type: 'max'
-    }, {{ /if }}{{ if: ${hasCoord} }}
+    }, {{ /if }}{{ if: ${hasCoord} }}
     {
         name: 'coordinate',
         coord: [10, 20]
@@ -75,7 +77,8 @@ data: [{{ if: ${hasType} }}
         name: 'fixed x position',
         yAxis: 10,
         x: '90%'
-    }, {{ /if }}
+    }, {{ /if }}
+
     {
         name: 'screen coordinate',
         x: 100,
@@ -87,8 +90,8 @@ data: [{{ if: ${hasType} }}
 ###${prefix} name(string) = ''
 
 Mark point name.
-{{ if: ${hasType} }}
 
+{{ if: ${hasType} }}
 ###${prefix} type(string)
 
 Special label types, are used to label maximum value, minimum value and so on.
@@ -97,9 +100,9 @@ Special label types, are used to label maximum value, minimum value and so on.
 + `'min'` maximum value.
 + `'max'` minimum value.
 + `'average'` average value.
-{{ /if }}
-{{ if: ${hasCoord} }}
+{{ /if }}
 
+{{ if: ${hasCoord} }}
 ###${prefix} valueIndex(number)
 
 Available when using [type](~series-${seriesType}.markPoint.data.type) it is used to assign maximum value and minimum value in dimensions, it could be `0` (xAxis, radiusAxis), `1` (yAxis, angleAxis), and use the first value axis dimension by default.
@@ -111,9 +114,8 @@ Works only when [type](~series-${seriesType}.markPoint.data.type) is assigned. I
 ###${prefix} coord(Array)
 
 Coordinates of the starting point or ending point, whose format depends on the coordinate of the series. It can be `x`, and `y` for [rectangular coordinates](~grid), or `radius`, and `angle` for [polar coordinates](~polar).
-
-{{ use: marker-coord-explain }}
-
+
+{{ use: marker-coord-explain() }}
 {{ /if }}
 
 ###${prefix} x(number)
diff --git a/en/option/partial/marker.md b/en/option/partial/marker.md
index e78ba18..6df9371 100644
--- a/en/option/partial/marker.md
+++ b/en/option/partial/marker.md
@@ -27,7 +27,6 @@ prefix
 
 
 
-
 {{ target: marker-coord-explain }}
 
 **Notice:** For axis with [axis.type](~xAixs.type) `'category'`:
diff --git a/en/option/partial/parallel.md b/en/option/partial/parallel.md
index a9a52d1..1f87040 100644
--- a/en/option/partial/parallel.md
+++ b/en/option/partial/parallel.md
@@ -123,7 +123,6 @@ It is suggested to set [series-parallel.lineStyle.width](~series-parallel.lineSt
 
 
 
-
 {{ target: partial-parallel-data-example }}
 
 For example, [series-parallel.data](~series-parallel.data) is the following data:
@@ -145,14 +144,12 @@ In data above, each row is a "data item", and each column represents a "dimensio
 
 
 
-
 {{ target: partial-parallel-axis-default }}
 
 When configuring multiple [parallelAxis](~parallelAxis), there might be some common attributes in each axis configuration. To avoid writing them repeatly, they can be put under [parallel.parallelAxisDefault](~parallel.parallelAxisDefault). Before initializing axis, configurations in [parallel.parallelAxisDefault](~parallel.parallelAxisDefault) will be merged into [parallelAxis](~parallelAxis) to generate the final axis configuration.
 
 
 
-
 {{ target: partial-parallel-high-dim }}
 
 When dimension number is extremely large, say, more than 50 dimensions, there will be more than 50 axes, which may hardly display in a page.
diff --git a/en/option/partial/progressive.md b/en/option/partial/progressive.md
index c012fb7..744612a 100644
--- a/en/option/partial/progressive.md
+++ b/en/option/partial/progressive.md
@@ -14,12 +14,10 @@ Set `progressive: 0` to disable progressive permanently. By default, progressive
 If current data amount is over the threshold, "progressive rendering" is enabled.
 
 {{ if: ${supportProgressiveChunkMode} }}
-
 #${prefix} progressiveChunkMode(string) = ${defaultProgressiveChunkMode|default('sequential')}
 
 Chunk approach, optional values:
 + `'sequential'`: slice data by data index.
 + `'mod'`: slice data by mod, which make the data items of each chunk coming from all over the data, bringing better visual effect while progressive rendering.
-
 {{ /if }}
 
diff --git a/en/option/partial/rect-layout.md b/en/option/partial/rect-layout.md
index a271ffb..2beb57d 100644
--- a/en/option/partial/rect-layout.md
+++ b/en/option/partial/rect-layout.md
@@ -1,12 +1,12 @@
 
 {{ target: partial-rect-layout }}
 
-{{ if: !${noZ} }}
-{{ use: partial-z-zlevel(
-    prefix=${prefix},
-    defaultZLevel=${defaultZLevel},
-    defaultZ=${defaultZ}
-) }}
+{{ if: !${noZ} }}
+{{ use: partial-z-zlevel(
+    prefix = ${prefix},
+    defaultZLevel = ${defaultZLevel},
+    defaultZ = ${defaultZ}
+) }}
 {{ /if }}
 
 #${prefix|default("#")} left(string|number) = ${defaultLeft|default("'auto'")}
@@ -30,7 +30,7 @@ If the `left` value is set to be `'top'`, `'middle'`, or `'bottom'`, then the co
 Distance between ${componentName} component and the right side of the container.
 
 `right` value can be instant pixel value like `20`; it can also be a percentage value relative to container width like `'20%'`.
-
+
 {{ if: !${defaultRight} }}Adaptive by default.{{ /if }}
 
 #${prefix|default("#")} bottom(string|number) = ${defaultBottom|default("'auto'")}
@@ -38,6 +38,6 @@ Distance between ${componentName} component and the right side of the container.
 Distance between ${componentName} component and the bottom side of the container.
 
 `bottom` value can be instant pixel value like `20`; it can also be a percentage value relative to container width like `'20%'`.
-
+
 {{ if: !${defaultBottom} }}Adaptive by default.{{ /if }}
 
diff --git a/en/option/partial/roam.md b/en/option/partial/roam.md
index f63fded..2fbe0b0 100644
--- a/en/option/partial/roam.md
+++ b/en/option/partial/roam.md
@@ -5,7 +5,6 @@ Whether to enable mouse zooming and translating. `false` by default. If either z
 
 
 
-
 {{ target: partial-scale-limit }}
 
 Limit of scaling, with `min` and `max`. `1` by default.
diff --git a/en/option/partial/style-shadow-opacity.md b/en/option/partial/style-shadow-opacity.md
index a7104b1..2420b0a 100644
--- a/en/option/partial/style-shadow-opacity.md
+++ b/en/option/partial/style-shadow-opacity.md
@@ -12,38 +12,37 @@ For example:
     shadowBlur: 10
 }
 ```
-
-{{ if: ${needShow} }}
+
+{{ if: ${needShow} }}
 **Attention**: This property works only if `show: true` is configured and `backgroundColor` is defined other than `transparent`.
 {{ /if }}
 
 #${prefix} shadowColor(Color) = ${defaultShadowColor}
 
 Shadow color. Support same format as `color`.
-
-{{ if: ${needShow} }}
+
+{{ if: ${needShow} }}
 **Attention**: This property works only if `show: true` configured.
 {{ /if }}
 
 #${prefix} shadowOffsetX(number) = ${defaultShadowOffsetX|default(0)}
 
 Offset distance on the horizontal direction of shadow.
-
-{{ if: ${needShow} }}
+
+{{ if: ${needShow} }}
 **Attention**: This property works only if `show: true` configured.
 {{ /if }}
 
 #${prefix} shadowOffsetY(number) = ${defaultShadowOffsetY|default(0)}
 
 Offset distance on the vertical direction of shadow.
-
-{{ if: ${needShow} }}
+
+{{ if: ${needShow} }}
 **Attention**: This property works only if `show: true` configured.
 {{ /if }}
 
 
 
-
 {{ target: partial-style-opacity }}
 
 #${prefix} opacity(number) = ${defaultOpacity}
@@ -52,7 +51,6 @@ Opacity of the component. Supports value from 0 to 1, and the component will not
 
 
 
-
 {{ target: partial-style-shadow-opacity }}
 
 {{ use: partial-style-shadow(
diff --git a/en/option/partial/symbol.md b/en/option/partial/symbol.md
index 901f1b0..c1115e8 100644
--- a/en/option/partial/symbol.md
+++ b/en/option/partial/symbol.md
@@ -7,7 +7,7 @@ Symbol of ${name}.
 
 {{ use: partial-icon() }}
 
-{{ if: ${hasCallback} }}
+{{ if: ${hasCallback} }}
 If symbols needs to be different, you can set with callback function in the following format:
 ```js
 (value: Array|number, params: Object) => string
@@ -18,8 +18,8 @@ The first parameter `value` is the value in [data](~series-${seriesType}.data),
 #${prefix} symbolSize(number|Array{{ if: ${hasCallback} }}|Function{{ /if }})(*) = ${defaultSymbolSize}
 
 ${name} symbol size. It can be set to single numbers like `10`, or use an array to represent width and height. For example, `[20, 10]` means symbol width is `20`, and height is`10`.
-
-{{ if: ${hasCallback} }}
+
+{{ if: ${hasCallback} }}
 If size of symbols needs to be different, you can set with callback function in the following format:
 ```js
 (value: Array|number, params: Object) => number|Array
@@ -30,15 +30,14 @@ The first parameter `value` is the value in [data](~series-${seriesType}.data),
 #${prefix} symbolRotate(number{{ if: ${hasCallback} }}|Function{{ /if }})(*)
 
 Rotate degree of ${name} symbol. The negative value represents clockwise. Note that when `symbol` is set to be `'arrow'` in `markLine`, `symbolRotate` value will be ignored, and compulsively use tangent angle.
-
-{{ if: ${hasCallback} }}
+
+{{ if: ${hasCallback} }}
 If rotation of symbols needs to be different, you can set with callback function in the following format:
 ```js
 (value: Array|number, params: Object) => number
 ```
 The first parameter `value` is the value in [data](~series-${seriesType}.data), and the second parameter `params` is the rest parameters of data item.
 > Callback is supported since 4.8.0 .
-
 {{ /if }}
 
 #${prefix} symbolKeepAspect(boolean) = false
diff --git a/en/option/partial/text-style.md b/en/option/partial/text-style.md
index 40e8875..6812273 100644
--- a/en/option/partial/text-style.md
+++ b/en/option/partial/text-style.md
@@ -14,7 +14,6 @@
 
 
 
-
 {{ target: partial-text-style }}
 
 {{ use: partial-text-style-base-item(
@@ -31,7 +30,6 @@
 ) }}
 
 {{ if: !${noRich} }}
-
 #${prefix} rich(Object)
 
 "Rich text styles" can be defined in this `rich` property. For example:
@@ -74,25 +72,22 @@ For more details, see [Rich Text](tutorial.html#Rich%20Text) please.
 
 ##${prefix} <style_name>(Object)
 
-{{ use: partial-text-style-base-item(
-    prefix=${prefix} + '##',
-    enableAutoColor=${enableAutoColor}
-) }}
-
+{{ use: partial-text-style-base-item(
+    prefix = ${prefix} + '##',
+    enableAutoColor = ${enableAutoColor}
+) }}
 {{ /if }}
 
 
 
-
 {{ target: partial-text-style-base-item }}
 
 #${prefix} color(Color) = ${defaultColor|default('"#fff"')}
 
 ${name} text color.
-
-
-{{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+
+{{ if: ${enableAutoColor} }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} fontStyle(string) = 'normal'
@@ -124,10 +119,8 @@ Can also be 'serif' , 'monospace', ...
 #${prefix} fontSize(number) = ${defaultFontSize|default(12)}
 
 ${name} font size.
-
-
-{{ if: !${noAlign} }}
 
+{{ if: !${noAlign} }}
 #${prefix} align(string) = ${defaultAlign}
 
 Horizontal alignment of text, automatic by default.
@@ -136,16 +129,14 @@ Options are:
 + `'left'`
 + `'center'`
 + `'right'`
-
-{{ use: partial-text-style-rich-inherit(
-    name='align',
-    value='right'
-) }}
-
-{{ /if }}
-
-{{ if: !${noVerticalAlign} }}
 
+{{ use: partial-text-style-rich-inherit(
+    name = 'align',
+    value = 'right'
+) }}
+{{ /if }}
+
+{{ if: !${noVerticalAlign} }}
 #${prefix} verticalAlign(string) = ${defaultVerticalAlign}
 
 Vertical alignment of text, automatic by default.
@@ -154,12 +145,11 @@ Options are:
 + `'top'`
 + `'middle'`
 + `'bottom'`
-
-{{ use: partial-text-style-rich-inherit(
-    name='verticalAlign',
-    value='bottom'
-) }}
-
+
+{{ use: partial-text-style-rich-inherit(
+    name = 'verticalAlign',
+    value = 'bottom'
+) }}
 {{ /if }}
 
 #${prefix} lineHeight(number)
@@ -172,7 +162,6 @@ Line height of the text fragment.
 ) }}
 
 {{ if: !${noBox} }}
-
 #${prefix} backgroundColor(string|Object) = 'transparent'
 
 Background color of the text fragment.
@@ -193,17 +182,17 @@ backgroundColor: {
 
 `width` or `height` can be specified when using background image, or
 auto adapted by default.
-
-{{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+
+{{ if: ${enableAutoColor} }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} borderColor(Color) = 'transparent'
 
 Border color of the text fragment.
-
-{{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+
+{{ if: ${enableAutoColor} }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} borderWidth(number) = 0
@@ -239,7 +228,6 @@ Shadow X offset of the text block.
 #${prefix} shadowOffsetY(number) = 0
 
 Shadow Y offset of the text block.
-
 {{ /if }}
 
 #${prefix} width(number|string)
@@ -264,9 +252,9 @@ Notice, `width` and `height` only work when `rich` specified.
 #${prefix} textBorderColor(Color) = 'transparent'
 
 Storke color of the text.
-
-{{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+
+{{ if: ${enableAutoColor} }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} textBorderWidth(number) = 0
@@ -291,14 +279,12 @@ Shadow Y offset of the text itself.
 
 
 
-
 {{ target: partial-text-style-auto-color-desc }}
 
 If set as `'auto'`, the color will assigned as visual color, such as series color.
 
 
 
-
 {{ target: partial-text-style-rich-inherit }}
 
 If `${name}` is not set in `rich`, `${name}` in parent level will be used. For example:
diff --git a/en/option/partial/tooltip-common.md b/en/option/partial/tooltip-common.md
index dd3cfcb..b0ea043 100644
--- a/en/option/partial/tooltip-common.md
+++ b/en/option/partial/tooltip-common.md
@@ -18,7 +18,6 @@ tooltip can be configured on different places:
 
 
 
-
 {{ target: partial-tooltip-in-coords }}
 
 ## tooltip(Object)
@@ -40,7 +39,6 @@ tooltip settings in the coordinate system component.
 
 
 
-
 {{ target: partial-tooltip-in-series }}
 
 ## tooltip(*)
@@ -54,7 +52,6 @@ tooltip settings in this series.
 
 
 
-
 {{ target: partial-tooltip-in-series-data }}
 
 ### tooltip(*)
@@ -68,19 +65,18 @@ tooltip settings in this series data.
 
 
 
-
 {{ target: partial-tooltip-scope-tip }}
 
 {{ if: ${scope} === 'series' }}
 <br>
 > **Notice:**series.tooltip only works when [tooltip.trigger](~tooltip.trigger) is `'item'`.<br>
-{{ elif:${scope} === 'seriesData' }}
+
+{{ elif: ${scope} === 'seriesData' }}
 > **Notice:**series.data.tooltip only works when [tooltip.trigger](~tooltip.trigger) is `'item'`.<br>
 {{ /if }}
 
 
 
-
 {{ target: partial-tooltip-coords-common }}
 
 #${prefix} show(boolean) = true
@@ -158,7 +154,6 @@ It is valid when [axisPointer.type](~tooltip.axisPointer.type) is `'cross'`.
 
 
 
-
 {{ target: partial-tooltip-common }}
 
 #${prefix} position(string|Array)
diff --git a/en/option/partial/zr-graphic.md b/en/option/partial/zr-graphic.md
index 4eb92f9..2b04160 100644
--- a/en/option/partial/zr-graphic.md
+++ b/en/option/partial/zr-graphic.md
@@ -70,7 +70,6 @@ A list of children, each item is a declaration of an element.
 ) }}
 
 {{ if: ${usageType} === 'customSeries' }}
-
 #${prefix} ${hostName}${symbolDeclare}path(Object)
 
 Use [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData) to describe a path. Can be used to draw icons or any other shapes fitting the specified size by auto transforming.
@@ -81,15 +80,14 @@ See examples:
 About width/height, cover/contain, see
 [layout](~${optionPath}.${hostName}${symbolVisit}path.shape.layout).
 
-
 {{ use: partial-graphic-cpt-common-props(
-    type='path',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    type = 'path',
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} shape(Object)
@@ -121,53 +119,52 @@ Optional value:
 + `'center'`: Keep aspect ratio, put the path in the center of the rect, expand as far as possible but never overflow.
 + `'cover'`: Transform the path according to the aspect ratio of the rect, fill the rect and do not overflow.
 
-
 {{ use: partial-graphic-cpt-sub-prop-xy(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
+
 {{ use: partial-graphic-cpt-sub-prop-wh(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} style(Object)
 
 {{ use: partial-graphic-cpt-style-prop-common(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 {{ use: partial-graphic-cpt-style-emphasis(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 {{ use: partial-graphic-cpt-event-handlers(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
-
 {{ /if }}
 
 #${prefix} ${hostName}${symbolDeclare}image(Object)
@@ -917,7 +914,6 @@ Value range: [0, 1].
 
 
 
-
 {{ target: partial-graphic-cpt-common-props }}
 
 ##${prefix} type(string) = ${type}
@@ -940,7 +936,6 @@ id is used to specifying element when willing to update it.
 id can be ignored if you do not need it.
 
 {{ if: ${usageType} === 'graphicComponent' }}
-
 ##${prefix} $action(string) = 'merge'
 
 Specify the operation should be performed to the element when calling `setOption`.
@@ -951,7 +946,6 @@ Optional values:
 + `'merge'`: merge the given option to existing element (if any), otherwise create a new element.
 + `'replace'`: create a new element according to the given option and replace the existing element (if any).
 + `'remove'`: delete the existing element (if any).
-
 {{ /if }}
 
 {{ use: partial-graphic-transform(
@@ -964,53 +958,52 @@ Optional values:
 ) }}
 
 {{ if: ${usageType} === 'graphicComponent' }}
-
 ##${prefix} left(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'h',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} right(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'h',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} top(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'v',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} bottom(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'v',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} bounding(strin) = 'all'
@@ -1037,13 +1030,9 @@ z value of the elements, determine the overlap order.
 Determine which canvas layer this element should be in.
 
 Notice: Multiple canvas layer may affect performance.
-
 {{ /if }}
 
-
-
 {{ if: ${usageType} === 'customSeries' }}
-
 ##${prefix} z2(number) = undefined
 
 Define the overlap relationship between graphic elements.
@@ -1051,7 +1040,6 @@ Define the overlap relationship between graphic elements.
 ##${prefix} name(string) = undefined
 
 See [diffChildrenByName](~${optionPath}.${hostName}${symbolVisit}polygon.diffChildrenByName).
-
 {{ /if }}
 
 ##${prefix} info(*)
@@ -1076,10 +1064,10 @@ Whether the element is visible.
 
 Whether the element is totally ignored (neither render nor listen events).
 
-
 {{ if: ${usageType} === 'graphicComponent' }}
-
-{{ use: partial-cursor(prefix="##") }}
+{{ use: partial-cursor(
+    prefix = "##"
+) }}
 
 ##${prefix} draggable(boolean) = false
 
@@ -1088,12 +1076,10 @@ Can be dragged or not.
 ##${prefix} progressive(boolean) = false
 
 Whether use progressive render to improve performance. Usually used when number of element is too large.
-
 {{ /if }}
 
 
 
-
 {{ target: partial-graphic-cpt-style-prop-common }}
 
 More attributes in `style` (for example, [rich text](tutorial.html#Rich%20Text)), see the `style` related attributes in [zrender/graphic/Displayable](https://ecomfe.github.io/zrender-doc/public/api.html#zrenderdisplayable).
@@ -1136,7 +1122,6 @@ color of shadow.
 
 
 
-
 {{ target: partial-graphic-cpt-path-common }}
 
 ###${prefix} points(Array)
@@ -1158,7 +1143,6 @@ Only works when `smooth` is `number` (bezier smooth).
 
 
 
-
 {{ target: partial-graphic-cpt-location-prop-desc-common }}
 
 Specify how to be positioned in its parent.
@@ -1176,6 +1160,7 @@ Optional values:
 Only one between [left](~${optionPath}.${hostName}${symbolVisit}polygon.left) and [right](~${optionPath}.${hostName}${symbolVisit}polygon.right) can work.
 
 If [left](~${optionPath}.${hostName}${symbolVisit}polygon.left) or [right](~${optionPath}.${hostName}${symbolVisit}polygon.right) is specified, positioning attributes in [shape](~${optionPath}.${hostName}${symbolVisit}polygon.shape) (like `x`, `cx`) will not work.
+
 {{ else }}
 Only one between [top](~${optionPath}.${hostName}${symbolVisit}polygon.top) and [bottom](~${optionPath}.${hostName}${symbolVisit}polygon.bottom) can work.
 
@@ -1184,7 +1169,6 @@ If [top](~${optionPath}.${hostName}${symbolVisit}polygon.top) or [bottom](~${opt
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-xy }}
 
 ###${prefix} x(number) = 0
@@ -1197,7 +1181,6 @@ The y value of the left-top corner of the element in the coordinate system of it
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-cxy }}
 
 ###${prefix} cx(number) = 0
@@ -1210,7 +1193,6 @@ The y value of the center of the element in the coordinate system of its parent.
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-wh }}
 
 ###${prefix} width(number) = 0
@@ -1223,7 +1205,6 @@ The height of the shape of the element.
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-r }}
 
 ###${prefix} r(number) = 0
@@ -1232,7 +1213,6 @@ Outside radius.
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-rr0 }}
 
 {{ use: partial-graphic-cpt-sub-prop-r(
@@ -1250,7 +1230,6 @@ Inside radius.
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-x1y1x2y2 }}
 
 ###${prefix} x1(number) = 0
@@ -1271,7 +1250,6 @@ y value of the end point.
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-angle }}
 
 ###${prefix} startAngle(number) = 0
@@ -1288,11 +1266,9 @@ Whether draw clockwise.
 
 
 
-
 {{ target: partial-graphic-cpt-event-handlers }}
 
 {{ if: ${usageType} === 'graphicComponent' }}
-
 ##${prefix} onclick(Function)
 
 ##${prefix} onmouseover(Function)
@@ -1320,12 +1296,10 @@ Whether draw clockwise.
 ##${prefix} ondragover(Function)
 
 ##${prefix} ondrop(Function)
-
 {{ /if }}
 
 
 
-
 {{ target: partial-graphic-transform }}
 
 ##${prefix} position(Array) = [0, 0]
@@ -1370,7 +1344,6 @@ Whether draw clockwise.
 
 
 
-
 {{ target: partial-graphic-transform-common-desc }}
 
 `2D transform` can be applied to graphic elements, including:
@@ -1386,20 +1359,16 @@ Notice:
 
 
 
-
 {{ target: partial-graphic-cpt-style-emphasis }}
 
 {{ if: ${usageType} === 'customSeries' }}
-
 ##${prefix} styleEmphasis(Object)
 
 Empahsis style of the graphic element, whose structure is the same as [style](~${optionPath}.${hostName}${symbolVisit}polygon.style).
-
 {{ /if }}
 
 
 
-
 {{ target: partial-graphic-cpt-type-list }}
 
 [image](~${optionPath}.${hostName}${symbolVisit}image),
diff --git a/en/option/series/bar.md b/en/option/series/bar.md
index 01cbb42..b46dfa4 100644
--- a/en/option/series/bar.md
+++ b/en/option/series/bar.md
@@ -197,7 +197,6 @@ The style setting of the text label in a single bar.
 
 
 
-
 {{ target: partial-bar-item-style }}
 
 #${prefix} color(Color) = ${defaultColor|default('auto')}
diff --git a/en/option/series/candlestick.md b/en/option/series/candlestick.md
index b24dde0..8bc6149 100644
--- a/en/option/series/candlestick.md
+++ b/en/option/series/candlestick.md
@@ -225,7 +225,6 @@ Emphasis style of a candle box.
 
 
 
-
 {{ target: partial-candlestick-item-style-detail }}
 
 #${prefix} color(Color) = ${defaultColor}
diff --git a/en/option/series/custom.md b/en/option/series/custom.md
index 230a125..c3fbc14 100644
--- a/en/option/series/custom.md
+++ b/en/option/series/custom.md
@@ -459,7 +459,6 @@ Value of data item.
 
 
 
-
 {{ target: partial-custom-renderItem-common }}
 
 `custom series` requires developers to write a render logic by themselves. This render logic is called [renderItem](~series-custom.renderItem).
@@ -518,7 +517,6 @@ Moreover, [api.style(...)](~series-custom.renderItem.arguments.api.style) method
 
 
 
-
 {{ target: partial-custom-dataIndex-dataIndexInside }}
 
 + `dataIndex` is the index of a `dataItem` in the original data.
diff --git a/en/option/series/funnel.md b/en/option/series/funnel.md
index 22deea0..790e768 100644
--- a/en/option/series/funnel.md
+++ b/en/option/series/funnel.md
@@ -218,13 +218,11 @@ The label configuration of a single data item.
 
 
 
-
 {{ target: partial-funnel-label }}
 
 #${prefix} show(boolean) = false
 
 {{ if: ${position} }}
-
 #${prefix} position(string) = 'outside'
 
 Label position.
@@ -245,19 +243,19 @@ Label position.
 + `'center'` equals to `'inside'`.
 
 [labelLine](~series-funnel.labelLine) can be used to guide to the corresponding trapezoid when label is not inside.
-
-
-{{ /if }}
-{{ if: ${formatter} }}
+{{ /if }}
 
+{{ if: ${formatter} }}
 #${prefix} formatter(string|Function)
 
-{{ use: partial-1d-data-label-formatter(extra = {
+{{ use: partial-1d-data-label-formatter(
+    extra = {
     percent: {
         desc: 'percentage',
         type: 'number'
     }
-}) }}
+}
+) }}
 {{ /if }}
 
 {{ use: partial-text-style(
@@ -266,14 +264,13 @@ Label position.
 
 
 
-
 {{ target: partial-funnel-label-line }}
 
 #${prefix} show(boolean)
 
 Whether to show visual guide line.
-{{ if: ${length} }}
 
+{{ if: ${length} }}
 #${prefix} length(number)
 
 The length of the first part from visual guide line.
diff --git a/en/option/series/graph.md b/en/option/series/graph.md
index 3f94862..1c6a87b 100644
--- a/en/option/series/graph.md
+++ b/en/option/series/graph.md
@@ -473,7 +473,6 @@ Alias of [links](~series-graph.links)
 
 
 
-
 {{ target: graph-edge-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default(false)}
diff --git a/en/option/series/lines.md b/en/option/series/lines.md
index 7db1c09..b4870c9 100644
--- a/en/option/series/lines.md
+++ b/en/option/series/lines.md
@@ -212,7 +212,6 @@ The line style of this data item.
 
 
 
-
 {{ target: lines-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default(false)}
diff --git a/en/option/series/parallel.md b/en/option/series/parallel.md
index de213c5..b01f638 100644
--- a/en/option/series/parallel.md
+++ b/en/option/series/parallel.md
@@ -81,7 +81,6 @@ The value of a data item.
 
 
 
-
 {{ target: partial-parallel-line-style }}
 
 #${prefix} lineStyle(Object)
diff --git a/en/option/series/pictorialBar.md b/en/option/series/pictorialBar.md
index d614e89..d0df976 100644
--- a/en/option/series/pictorialBar.md
+++ b/en/option/series/pictorialBar.md
@@ -200,7 +200,6 @@ The style setting of the text label in a single bar.
 
 
 
-
 {{ target: pictorialBar-symbol-attrs }}
 
 #${prefix} symbol(string) = 'circle'
@@ -430,11 +429,9 @@ For example:
 ) }}
 
 {{ if: ${useZ2} }}
-
 #${prefix} z(number)
 
 Specify the relationship of overlap between graphic elements. A bigger value means higher.
-
 {{ /if }}
 
 #${prefix} hoverAnimation(boolean) = false
@@ -456,7 +453,6 @@ Whether to enable hover animation.
 
 
 
-
 {{ target: pictorialBar-animation-delay }}
 
 #${prefix} animationDelay(number|Function) = 0
@@ -497,7 +493,6 @@ For example:
 
 
 
-
 {{ target: pictorialBar-symbol-attrs-cascade }}
 
 This attribute can be set at the [root level of a series](~series-pictorialBar.${attrName}), where all data items in the series will be affected by this attribute. And this attribute can also be set at [each data item](~series-pictorialBar.data.${attrName}) in [series-pictorialBar.data](series-pictorialBar.data), where only the data item is affected by this attribute.
diff --git a/en/option/series/pie.md b/en/option/series/pie.md
index 78ae8b6..b456ce9 100644
--- a/en/option/series/pie.md
+++ b/en/option/series/pie.md
@@ -301,13 +301,11 @@ Animation type when data updates.
 
 
 
-
 {{ target: partial-pie-label }}
 
 #${prefix} show(boolean) = false
 
 {{ if: ${position} }}
-
 #${prefix} position(string) = 'outside'
 
 The position of label.
@@ -325,18 +323,19 @@ The position of label.
 + `'center'`
 
     In the center of pie chart. See [pie-doughnut example](${galleryEditorPath}pie-doughnut)
-
-{{ /if }}
-{{ if: ${formatter} }}
+{{ /if }}
 
+{{ if: ${formatter} }}
 #${prefix} formatter(string|Function)
 
-{{ use: partial-1d-data-label-formatter(extra = {
+{{ use: partial-1d-data-label-formatter(
+    extra = {
     percent: {
         desc: 'percentage',
         type: 'number'
     }
-}) }}
+}
+) }}
 {{ /if }}
 
 #${prefix} rotate(boolean|number) = null
@@ -352,7 +351,6 @@ Label rotation.
 
 
 
-
 {{ target: partial-pie-label-line }}
 
 The style of visual guide line.
@@ -360,20 +358,20 @@ The style of visual guide line.
 #${prefix} show(boolean)
 
 Whether to show the visual guide ine.
-{{ if: ${length} }}
 
+{{ if: ${length} }}
 #${prefix} length(number)
 
 The length of the first segment of visual guide line.
-{{ /if }}
-{{ if: ${length2} }}
+{{ /if }}
 
+{{ if: ${length2} }}
 #${prefix} length2(number)
 
 The length of the second segment of visual guide line.
-{{ /if }}
-{{ if: ${smooth} }}
+{{ /if }}
 
+{{ if: ${smooth} }}
 #${prefix} smooth(boolean|number) = false
 
 Whether to smooth the visual guide line. It defaults to be `false` and can be set as `true` or the values from 0 to 1 which indicating the smoothness.
diff --git a/en/option/series/sankey.md b/en/option/series/sankey.md
index a7068fc..25baaeb 100644
--- a/en/option/series/sankey.md
+++ b/en/option/series/sankey.md
@@ -321,7 +321,6 @@ Equals to [links](~series-sankey.links)
 
 
 
-
 {{ target: partial-sankey-line-style }}
 
 #${prefix} color(Color) = "'#314656'"
diff --git a/en/option/series/sunburst.md b/en/option/series/sunburst.md
index 2cbf1c0..e45c560 100644
--- a/en/option/series/sunburst.md
+++ b/en/option/series/sunburst.md
@@ -34,7 +34,6 @@ If angle of data piece is smaller than this value (in degrees), then text is not
 
 
 
-
 {{ target: partial-sunburst-label-props }}
 
 ${prefix} label(Object)
@@ -51,7 +50,6 @@ ${prefix} label(Object)
 
 
 
-
 {{ target: partial-sunburst-itemStyle-props }}
 
 ${prefix} itemStyle(Object)
@@ -74,7 +72,6 @@ In ECharts, *emphasis* is for styles when mouse hovers. For Sunburst charts, the
 
 
 
-
 {{ target: partial-sunburst-other-state }}
 
 #${prefix} emphasis(Object)
@@ -115,7 +112,6 @@ Item style when mouse is hovering unrelated items. See [highlightPolicy](~series
 
 
 
-
 {{ target: series-sunburst }}
 
 # series.sunburst(Object)
diff --git a/en/option/series/tree.md b/en/option/series/tree.md
index 4fb22ed..3f386cc 100644
--- a/en/option/series/tree.md
+++ b/en/option/series/tree.md
@@ -262,7 +262,6 @@ The label of the node.
 
 
 
-
 {{ target: partial-tree-line-style }}
 
 #${prefix} color(Color) = "'#ccc'"
diff --git a/en/option/series/treemap.md b/en/option/series/treemap.md
index a59c470..707e2bf 100644
--- a/en/option/series/treemap.md
+++ b/en/option/series/treemap.md
@@ -384,7 +384,6 @@ child nodes, recursive definition, configurations are the same as [series-treema
 
 
 
-
 {{ target: partial-treemap-level-props }}
 
 #${prefix} visualDimension(number) = 0
@@ -410,16 +409,17 @@ When [colorMappingBy](~series-treemap.levels.colorMappingBy) is set to `'value'`
 The maximal value of current level. Auto-statistics by default.
 
 When [colorMappingBy](~series-treemap.levels.colorMappingBy) is set to `'value'`, you are able to specify extent manually for visual mapping by specifying `visualMin` or `visualMax`.
-
-{{ if: ${prefix} !== '#' }}
 
+{{ if: ${prefix} !== '#' }}
 #${prefix} color(Array)
 
 A color list for a level. Each node in the level will obtain a color from the color list (the rule see [colorMappingBy](~series-treemap.levels.colorMappingBy)). It is empty by default, which means the global color list will be used.
-
-{{ use: partial-treemap-visual-detial }}
-{{ use: partial-treemap-prop-location-desc(name="color") }}
-
+
+{{ use: partial-treemap-visual-detial() }}
+
+{{ use: partial-treemap-prop-location-desc(
+    name = "color"
+) }}
 {{ /if }}
 
 #${prefix} colorAlpha(Array) = null
@@ -585,38 +585,34 @@ Height of label area.
 
 
 
-
 {{ target: partial-treemap-prop-location-desc }}
 
 <br>
 > Tps: In treemap, `${name}` attribute could appear in more than one places:
-
-{{ if: ${name} !== 'color' }}
+
+{{ if: ${name} !== 'color' }}
 > * It could appear in [sereis-treemap](~series-treemap), indicating the unified setting of the series.
-
-{{ /if }}
+{{ /if }}
+
 > * It could appear in each array element of  [series-treemap.levels](~series-treemap.levels), indicating the unified setting of each level of the tree.
 
 > * It could appear in each node of [series-treemap.data](~series-treemap.data), indicating the particular setting of each node.
 
 
 
-
 {{ target: partial-treemap-visual-detial }}
 
 About visual encoding, see details in [series-treemap.levels](~series-treemap.levels).
 
 
 
-
 {{ target: partial-treemap-item-style }}
 
 #${prefix} color(Color) = null
 
 The color of a node. It use global palette [option.color](~color) by default.
-
-{{ if: ${itemStyleType} === 'normal' }}
 
+{{ if: ${itemStyleType} === 'normal' }}
 #${prefix} colorAlpha(number) = null
 
 The tranparent rate of a node, the range is between 0 ~ 1.
@@ -650,7 +646,8 @@ When `borderColorSaturation` is set, the `borderColor` is disabled, and, instead
 In this way, a effect can be implemented: different sections have different hue of gap color repectively, which makes users easy to distinguish both sections and levels.
 
 <br>
-{{ use: partial-treemap-borderColor-setting(galleryEditorPath=${galleryEditorPath}) }}
+
+{{ use: partial-treemap-borderColor-setting() }}
 
 #${prefix} strokeColor(Color) = null
 
@@ -659,12 +656,10 @@ Stroke color of each rect.
 #${prefix} strokeWidth(number) = null
 
 Stroke width of each rect.
-
 {{ /if }}
 
 
 
-
 {{ target: partial-treemap-borderColor-setting }}
 
 **How to avoid confusion by setting border/gap of node**
diff --git a/package-lock.json b/package-lock.json
index 10fc749..3e337e3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13059,9 +13059,9 @@
       }
     },
     "zrender": {
-      "version": "4.3.1",
-      "resolved": "https://registry.npmjs.org/zrender/-/zrender-4.3.1.tgz",
-      "integrity": "sha512-CeH2TpJeCdG0TAGYoPSAcFX2ogdug1K7LIn9UO/q9HWqQ54gWhrMAlDP9AwWYMUDhrPe4VeazQ4DW3msD96nUQ=="
+      "version": "4.3.2",
+      "resolved": "https://registry.npmjs.org/zrender/-/zrender-4.3.2.tgz",
+      "integrity": "sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g=="
     }
   }
 }
diff --git a/package.json b/package.json
index 813cb6c..e4ba11f 100644
--- a/package.json
+++ b/package.json
@@ -54,6 +54,7 @@
   "dependencies": {
     "codemirror": "^5.54.0",
     "highlight.js": "^9.18.1",
+    "lodash": "^4.17.20",
     "lodash.debounce": "^4.0.8",
     "lodash.throttle": "^4.1.1",
     "mark.js": "^8.11.1",
@@ -64,6 +65,6 @@
     "vue-i18n": "^8.18.2",
     "vue-text-highlight": "^2.0.10",
     "whatwg-fetch": "^3.0.0",
-    "zrender": "^4.3.1"
+    "zrender": "^4.3.2"
   }
 }
diff --git a/tool/patchEnOption.js b/tool/patchEnOption.js
deleted file mode 100644
index 72fe89c..0000000
--- a/tool/patchEnOption.js
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Patch zh option doc to en option doc.
- */
-
-const Diff = require('diff');
diff --git a/tool/patchLanguage.js b/tool/patchLanguage.js
new file mode 100644
index 0000000..23341ea
--- /dev/null
+++ b/tool/patchLanguage.js
@@ -0,0 +1,97 @@
+/**
+ * Patch zh option doc to en option doc.
+ */
+
+const fs = require('fs');
+const path = require('path');
+const {compositeTargets} = require('../editor/common/blockHelper');
+const {parseBlocks} = require('../editor/common/parseBlocks');
+const _ = require('lodash');
+const arrayDiff = require('zrender/lib/core/arrayDiff2');
+
+
+const fromLang = 'zh';
+const toLang = 'en';
+
+function applyBlocksPatch(fromBlocks, toBlocks) {
+    const patchedBlocks = [];
+    const diffResult = arrayDiff(toBlocks, fromBlocks, function (a, b) {
+        return a.key === b.key;
+    });
+
+    for (let part of diffResult) {
+        if (part.removed) {
+            // Just ignore
+        }
+        else {
+            for (let i = 0; i < part.indices.length; i++) {
+                const fromBlock = fromBlocks[part.indices[i]];
+                const block = _.clone(
+                    part.added ? fromBlock    // New added content in zh doc
+                        : toBlocks.find(a => a.key === fromBlock.key) // Keep not change
+                );
+                block.inline = fromBlock.inline;
+                patchedBlocks.push(block);
+            }
+        }
+    }
+    return patchedBlocks;
+}
+
+function applyTargetsPatch(fromJson, toJson) {
+
+    for (let fileName in fromJson) {
+        const fromTargets = fromJson[fileName];
+        const toTargets = toJson[fileName];
+        if (!toTargets) {
+            toJson[fileName] = _.clone(fromTargets);
+            continue;
+        }
+
+        const diffResult = arrayDiff(toTargets, fromTargets, function (a, b) {
+            return a.name === b.name;
+        });
+
+        const patchedTargets = [];
+        for (let part of diffResult) {
+            // New added content in zh doc
+            if (part.added) {
+                for (let i = 0; i < part.indices.length; i++) {
+                    patchedTargets.push(_.clone(fromTargets[part.indices[i]]));
+                }
+            }
+            else if (part.removed) {
+                // Just ignore
+            }
+            else {
+                for (let i = 0; i < part.indices.length; i++) {
+                    const fromTarget = fromTargets[part.indices[i]];
+                    const toTarget = toTargets.find(a => a.name === fromTarget.name);
+                    patchedTargets.push({
+                        name: fromTarget.name,
+                        blocks: applyBlocksPatch(fromTarget.blocks, toTarget.blocks)
+                    });
+                }
+            }
+        }
+
+        toJson[fileName] = patchedTargets;
+    }
+}
+
+(async function () {
+    const blocksByLang = {};
+
+    for (let lang of [fromLang, toLang]) {
+        const json = await parseBlocks(path.resolve(__dirname, `../${lang}/option`));
+        blocksByLang[lang] = json;
+    }
+
+    await applyTargetsPatch(blocksByLang[fromLang], blocksByLang[toLang]);
+
+    for (let fileName in blocksByLang[toLang]) {
+        const fileTargets = blocksByLang[toLang][fileName];
+        const filePath = path.resolve(__dirname, `../${toLang}/option/`, fileName.replace('.', '/')) + '.md';
+        fs.writeFileSync(filePath, compositeTargets(fileTargets), 'utf-8');
+    }
+})();
diff --git a/zh/option/component/axis-common.md b/zh/option/component/axis-common.md
index d1f4224..7eeeaeb 100644
--- a/zh/option/component/axis-common.md
+++ b/zh/option/component/axis-common.md
@@ -34,7 +34,6 @@
 是否显示坐标轴轴线。
 
 {{ if: ${componentType} == 'xAxis' || ${componentType} == 'yAxis' }}
-
 ##${prefix} onZero(boolean) = true
 
 <ExampleUIControlBoolean default="true" />
@@ -76,7 +75,6 @@ X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一
 
 
 
-
 {{ target: partial-axis-common-axis-label }}
 
 #${prefix} axisLabel(Object)
@@ -84,7 +82,6 @@ X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一
 坐标轴刻度标签的相关设置。
 
 {{ if: !${hideShow} }}
-
 ##${prefix} show(boolean) = ${defaultShow|default(true)}
 
 <ExampleUIControlBoolean default="${defaultShow|default(true)}" />
@@ -93,20 +90,18 @@ X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一
 {{ /if }}
 
 {{ if: ${hasLabelInterval|default(true)} }}
-
 ##${prefix} interval(number|Function) = 'auto'
 
 <ExampleUIControlNumber min="0" step="1" />
 
 {{ use: partial-axis-interval(
-    name="坐标轴刻度标签",
-    isAxisLabel=true,
-    componentType=${componentType}
+    name = "坐标轴刻度标签",
+    isAxisLabel = true,
+    componentType = ${componentType}
 ) }}
 {{ /if }}
 
 {{ if: ${hasInside|default(true)} }}
-
 ##${prefix} inside(boolean) = false
 
 <ExampleUIControlBoolean />
@@ -115,7 +110,6 @@ X 轴或者 Y 轴的轴线是否在另一个轴的 0 刻度上,只有在另一
 {{ /if }}
 
 {{ if: ${componentType} !== 'angleAxis' }}
-
 ##${prefix} rotate(number) = 0
 
 <ExampleUIControlAngle min="-90" max="90" step="1" />
@@ -176,7 +170,6 @@ textStyle: {
 
 
 
-
 {{ target: partial-axis-common-axis-tick }}
 
 #${prefix} axisTick(Object)
@@ -190,7 +183,6 @@ textStyle: {
 是否显示坐标轴刻度。
 
 {{ if: ${hasAlignWithLabel|default(true)} }}
-
 ##${prefix} alignWithLabel(boolean) = false
 
 <ExampleUIControlBoolean default="false" />
@@ -201,19 +193,17 @@ textStyle: {
 {{ /if }}
 
 {{ if: ${hasLabelInterval|default(true)} }}
-
 ##${prefix} interval(number|Function) = 'auto'
 
 <ExampleUIControlNumber min="0" step="1" />
 
 {{ use: partial-axis-interval(
-    name="坐标轴刻度",
-    componentType=${componentType}
+    name = "坐标轴刻度",
+    componentType = ${componentType}
 ) }}
 {{ /if }}
 
 {{ if: ${hasInside|default(true)} }}
-
 ##${prefix} inside(boolean) = false
 
 <ExampleUIControlBoolean />
@@ -246,7 +236,6 @@ textStyle: {
 
 
 
-
 {{ target: partial-axis-common-minor-tick }}
 
 #${prefix} minorTick(Object)
@@ -304,7 +293,6 @@ textStyle: {
 
 
 
-
 {{ target: partial-axis-common-split-line }}
 
 #${prefix} splitLine(Object)
@@ -318,14 +306,13 @@ textStyle: {
 是否显示分隔线。默认数值轴显示,类目轴不显示。
 
 {{ if: ${hasLabelInterval|default(true)} }}
-
 ##${prefix} interval(number|Function) = 'auto'
 
 <ExampleUIControlNumber min="0" step="1" />
 
 {{ use: partial-axis-interval(
-    name="坐标轴分隔线",
-    componentType=${componentType}
+    name = "坐标轴分隔线",
+    componentType = ${componentType}
 ) }}
 {{ /if }}
 
@@ -361,7 +348,6 @@ splitLine: {
 
 
 
-
 {{ target: partial-axis-common-minor-split-line }}
 
 #${prefix} minorSplitLine(Object)
@@ -388,23 +374,20 @@ splitLine: {
 
 
 
-
 {{ target: partial-axis-common-split-area }}
 
 #${prefix} splitArea(Object)
 
 坐标轴在 [grid](~grid) 区域中的分隔区域,默认不显示。
 
-
 {{ if: ${hasLabelInterval|default(true)} }}
-
 ##${prefix} interval(number|Function) = 'auto'
 
 <ExampleUIControlNumber min="0" step="1" />
 
 {{ use: partial-axis-interval(
-    name="坐标轴分隔区域",
-    componentType=${componentType}
+    name = "坐标轴分隔区域",
+    componentType = ${componentType}
 ) }}
 {{ /if }}
 
@@ -428,7 +411,6 @@ splitLine: {
 
 
 
-
 {{ target: partial-axis-type-content }}
 
 坐标轴类型。
@@ -448,7 +430,6 @@ splitLine: {
 
 
 
-
 {{ target: axis-common }}
 
 #${prefix} type(string) = ${axisTypeDefault|default('value')}
@@ -458,7 +439,6 @@ splitLine: {
 ) }}
 
 {{ if: ${componentType} !== 'angleAxis' }}
-
 #${prefix} name(string)
 
 <ExampleUIControlText />
@@ -480,7 +460,11 @@ splitLine: {
 
 坐标轴名称的文字样式。
 
-{{ use: partial-text-style(prefix='#' + ${prefix}, name="坐标轴名称") }}
+{{ use: partial-text-style(
+    prefix = '#' + ${prefix},
+    name = "坐标轴名称"
+) }}
+
 <!-- Overwrite color -->
 
 ##${prefix} color(Color)
@@ -506,7 +490,6 @@ splitLine: {
 <ExampleUIControlBoolean />
 
 是否是反向坐标轴。
-
 {{ /if }}
 
 #${prefix} boundaryGap(boolean|Array)
@@ -654,22 +637,20 @@ max: function (value) {
 ) }}
 
 {{ if: ${hasSplitLineAndArea} }}
-
 {{ use: partial-axis-common-split-line(
-    prefix=${prefix},
-    componentType=${componentType}
+    prefix = ${prefix},
+    componentType = ${componentType}
 ) }}
 
 {{ use: partial-axis-common-minor-split-line(
-    prefix=${prefix},
-    componentType=${componentType}
+    prefix = ${prefix},
+    componentType = ${componentType}
 ) }}
 
 {{ use: partial-axis-common-split-area(
-    prefix=${prefix},
-    componentType=${componentType}
+    prefix = ${prefix},
+    componentType = ${componentType}
 ) }}
-
 {{ /if }}
 
 #${prefix} data(Array)
@@ -709,21 +690,17 @@ data: [{
 ) }}
 
 {{ if: !${noAxisPointer} }}
-
 #${prefix} axisPointer(Object)
 
 坐标轴指示器配置项。
 
 {{ use: partial-axisPointer-common(
-    prefix="#" + ${prefix},
-    galleryViewPath=${galleryViewPath},
-    galleryEditorPath=${galleryEditorPath}
+    prefix = "#" + ${prefix}
 ) }}
 {{ /if }}
 
 
 
-
 {{ target: partial-axis-interval }}
 
 ${name}的显示间隔,在类目轴中有效。{{ if: !${isAxisLabel} }}默认同 [axisLabel.interval](~${componentType}.axisLabel.interval) 一样。{{ /if }}
@@ -742,7 +719,6 @@ ${name}的显示间隔,在类目轴中有效。{{ if: !${isAxisLabel} }}默认
 
 
 
-
 {{ target: axis-common-formatter-desc }}
 
 刻度标签的内容格式器,支持字符串模板和回调函数两种形式。
diff --git a/zh/option/component/brush.md b/zh/option/component/brush.md
index 7b0ced4..0a988c1 100644
--- a/zh/option/component/brush.md
+++ b/zh/option/component/brush.md
@@ -222,7 +222,6 @@ brush 选框的 z-index。当有和不想管组件有不正确的重叠时,可
 
 
 
-
 {{ target: partial-brush-coord }}
 
 可以设置 `brush` 是『全局的』还是『属于坐标系的』。
@@ -283,7 +282,6 @@ option = {
 
 
 
-
 {{ target: partial-brush-brushLink }}
 
 不同系列间,选中的项可以联动。
@@ -322,7 +320,6 @@ option = {
 
 
 
-
 {{ target: partial-brush-throttle }}
 
 默认情况,刷选或者移动选区的时候,会不断得发 `brushSelected` 事件,从而告诉外界选中的内容。
@@ -335,7 +332,6 @@ throttleType 取值可以是:
 
 
 
-
 {{ target: partial-brush-toolbox-buttons }}
 
 brush 相关的 toolbox 按钮有:
@@ -349,7 +345,6 @@ brush 相关的 toolbox 按钮有:
 
 
 
-
 {{ target: partial-brush-type }}
 
 + `'rect'`:矩形选框。
diff --git a/zh/option/component/data-zoom.md b/zh/option/component/data-zoom.md
index f2265bf..578b41d 100644
--- a/zh/option/component/data-zoom.md
+++ b/zh/option/component/data-zoom.md
@@ -118,7 +118,6 @@ option = {
 
 
 
-
 {{ target: partial-data-zoom-axis-example }}
 
 如果是 `number` 表示控制一个轴,如果是 `Array` 表示控制多个轴。
@@ -146,7 +145,6 @@ option: {
 
 
 
-
 {{ target: partial-data-zoom-common }}
 
 ## xAxisIndex(number|Array) = null
@@ -312,7 +310,6 @@ option: {
 
 
 
-
 {{ target: partial-data-zoom-filterMode }}
 
 `dataZoom` 的运行原理是通过 `数据过滤` 以及在内部设置轴的显示窗口来达到 `数据窗口缩放` 的效果。
diff --git a/zh/option/component/timeline.md b/zh/option/component/timeline.md
index 4561cd7..bf3a9d5 100644
--- a/zh/option/component/timeline.md
+++ b/zh/option/component/timeline.md
@@ -835,7 +835,6 @@ const option = {
 
 
 
-
 {{ target: partial-timeline-label }}
 
 #${prefix} show(boolean) = true
@@ -858,15 +857,16 @@ const option = {
 
 {{ if: ${state} }}
 {{ use: partial-text-style(
-    prefix=${prefix},
-    name="timeline.lable." + ${state},
-    defaultColor=${textStyleDefaultColor}
+    prefix = ${prefix},
+    name = "timeline.lable." + ${state},
+    defaultColor = ${textStyleDefaultColor}
 ) }}
+
 {{ else }}
 {{ use: partial-text-style(
-    prefix=${prefix},
-    name="timeline.lable",
-    defaultColor=${textStyleDefaultColor}
+    prefix = ${prefix},
+    name = "timeline.lable",
+    defaultColor = ${textStyleDefaultColor}
 ) }}
 {{ /if }}
 
diff --git a/zh/option/component/toolbox.md b/zh/option/component/toolbox.md
index 5d23302..68cb7db 100644
--- a/zh/option/component/toolbox.md
+++ b/zh/option/component/toolbox.md
@@ -57,7 +57,6 @@ ${name} icon 样式设置。由于 icon 的文本信息只在 icon hover 时候
 
 
 
-
 {{ target: feature-common }}
 
 #### show(boolean) = true
@@ -77,7 +76,6 @@ ${name} icon 样式设置。由于 icon 的文本信息只在 icon hover 时候
 
 
 
-
 {{ target: component-toolbox }}
 
 # toolbox(Object)
diff --git a/zh/option/component/visual-map.md b/zh/option/component/visual-map.md
index a5f58e0..ea86550 100644
--- a/zh/option/component/visual-map.md
+++ b/zh/option/component/visual-map.md
@@ -63,7 +63,6 @@ series: {
 
 
 
-
 {{ target: partial-visual-map-range }}
 
 `${rangeType}` 能定义目标系列(参见 [${visualMapName}.seriesIndex](~${visualMapName}.seriesIndex))视觉形式,也同时定义了 `${visualMapName}` 本身的视觉样式。通俗来讲就是,假如 `${visualMapName}`控制的是散点图,那么 `${rangeType}` 同时定义了散点图的 `颜色`、`尺寸` 等,也定义了 `${visualMapName}` 本身的 `颜色`、`尺寸` 等。这二者能对应上。
@@ -219,7 +218,6 @@ visualMap: {
 
 
 
-
 {{ target: partial-visual-map-merge }}
 
 **✦ 修改视觉编码 ✦**
@@ -254,7 +252,6 @@ chart.setOption(option); // option设置回 ${componentMainType}
 
 
 
-
 {{ target: partial-visual-map-inRange-outOfRange }}
 
 ##${prefix} inRange(Object)
@@ -304,7 +301,6 @@ chart.setOption(option); // option设置回 ${componentMainType}
 
 
 
-
 {{ target: partial-visual-map-common }}
 
 ## show(boolean) = true
diff --git a/zh/option/partial/1d-data.md b/zh/option/partial/1d-data.md
index 86075ed..f9e1e09 100644
--- a/zh/option/partial/1d-data.md
+++ b/zh/option/partial/1d-data.md
@@ -34,7 +34,6 @@ formatter: '{b}: {d}'
 
 
 
-
 {{ target: partial-1d-data-desc }}
 
 ${name}系列中的数据内容数组。数组项可以为单个数值,如:
diff --git a/zh/option/partial/2d-data.md b/zh/option/partial/2d-data.md
index c0a85fc..a6ef408 100644
--- a/zh/option/partial/2d-data.md
+++ b/zh/option/partial/2d-data.md
@@ -30,7 +30,6 @@ formatter: '{b}: {@score}'
 
 
 
-
 {{ target: partial-seriesLayoutBy }}
 
 ## seriesLayoutBy(string) = 'column'
@@ -44,7 +43,6 @@ formatter: '{b}: {@score}'
 
 
 
-
 {{ target: partial-datasetIndex }}
 
 ## datasetIndex(number) = 0
@@ -53,7 +51,6 @@ formatter: '{b}: {@score}'
 
 
 
-
 {{ target: partial-2d-data-desc }}
 
 系列中的数据内容数组。数组项通常为具体的数据项。
diff --git a/zh/option/partial/animation.md b/zh/option/partial/animation.md
index 754e865..20cc2c0 100644
--- a/zh/option/partial/animation.md
+++ b/zh/option/partial/animation.md
@@ -40,7 +40,6 @@ animationDurationUpdate: function (idx) {
 数据更新动画的缓动效果。
 
 {{ if: !${noAnimationDelay} }}
-
 #${prefix} animationDelayUpdate(number|Function) = 0
 
 数据更新动画的延迟,支持回调函数,可以通过每个数据返回不同的 delay 时间实现更戏剧的更新动画效果。
@@ -58,7 +57,6 @@ animationDelayUpdate: function (idx) {
 
 
 
-
 {{ target: partial-animation-init }}
 
 #${prefix} animationDuration(number|Function) = ${defaultAnimationDuration|default(1000)}
@@ -81,7 +79,6 @@ animationDuration: function (idx) {
 初始动画的缓动效果。不同的缓动效果可以参考 [缓动示例](${galleryEditorPath}line-easing)。
 
 {{ if: !${noAnimationDelay} }}
-
 #${prefix} animationDelay(number|Function) = 0
 
 初始动画的延迟,支持回调函数,可以通过每个数据返回不同的 delay 时间实现更戏剧的初始动画效果。
diff --git a/zh/option/partial/area-style.md b/zh/option/partial/area-style.md
index c58d17f..f7823a7 100644
--- a/zh/option/partial/area-style.md
+++ b/zh/option/partial/area-style.md
@@ -1,7 +1,7 @@
 
 {{ target: partial-area-style }}
 
-#${prefix} color(Color) = {{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'自适应'{{ /if }}
+#${prefix} color(Color) ={{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'自适应'{{ /if }}
 
 <ExampleUIControlColor />
 
@@ -18,7 +18,6 @@
 {{ /if }}
 
 {{ if: ${hasOrigin} }}
-
 #${prefix|default('##')} origin(string) = 'auto'
 
 图形区域的起始位置。
diff --git a/zh/option/partial/axisPointer-common.md b/zh/option/partial/axisPointer-common.md
index 8554d32..6cd95ba 100644
--- a/zh/option/partial/axisPointer-common.md
+++ b/zh/option/partial/axisPointer-common.md
@@ -71,7 +71,6 @@ axisPointer 的 label 默认不显示(也就是默认只显示指示线),
 
 
 
-
 {{ target: partial-axisPointer-common }}
 
 #${prefix} show(boolean) = false
@@ -167,7 +166,6 @@ axisPointer 的 label 默认不显示(也就是默认只显示指示线),
 
 
 
-
 {{ target: partial-axisPointer-tooltip-shared }}
 
 #${prefix} snap(boolean)
@@ -283,7 +281,6 @@ label 距离轴的距离。
 
 
 
-
 {{ target: partial-formatter-params-axisPointer }}
 
 每项内容还包括轴的信息:
diff --git a/zh/option/partial/barGrid.md b/zh/option/partial/barGrid.md
index db98e53..8840495 100644
--- a/zh/option/partial/barGrid.md
+++ b/zh/option/partial/barGrid.md
@@ -70,14 +70,12 @@
 
 
 
-
 {{ target: partial-barGrid-share-desc }}
 
 在同一坐标系上,此属性会被多个 `'${seriesType}'` 系列共享。此属性应设置于此坐标系中最后一个 `'${seriesType}'` 系列上才会生效,并且是对此坐标系中所有 `'${seriesType}'` 系列生效。
 
 
 
-
 {{ target: partial-barGrid-value-absolute-or-percent }}
 
 可以是绝对值例如 `40` 或者百分数例如 `'60%'`。百分数基于自动计算出的每一类目的宽度。
diff --git a/zh/option/partial/circular-layout.md b/zh/option/partial/circular-layout.md
index ecb0996..be8ae97 100644
--- a/zh/option/partial/circular-layout.md
+++ b/zh/option/partial/circular-layout.md
@@ -27,6 +27,7 @@ ${componentName}的半径。可以为如下类型:
 
 + `number`:直接指定外半径值。
 + `string`:例如,`'20%'`,表示外半径为可视区尺寸(容器高宽中较小一项)的 20% 长度。
+
 {{ if: !${disableArray} }}
 + `Array.<number|string>`:数组的第一项是内半径,第二项是外半径。每一项遵从上述 `number` `string` 的描述。
 {{ /if }}
diff --git a/zh/option/partial/component-common-style.md b/zh/option/partial/component-common-style.md
index 3e83db9..7ac9803 100644
--- a/zh/option/partial/component-common-style.md
+++ b/zh/option/partial/component-common-style.md
@@ -34,7 +34,9 @@ ${componentName}的边框线宽。
 {{ /if }}
 
 {{ if: ${hasBorderRadius} }}
-{{ use: partial-border-radius(prefix=${prefix}) }}
+{{ use: partial-border-radius(
+    prefix = ${prefix}
+) }}
 {{ /if }}
 
 {{ use: partial-style-shadow(
@@ -44,7 +46,6 @@ ${componentName}的边框线宽。
 
 
 
-
 {{ target: partial-border-radius }}
 
 #${prefix} ${propName|default('borderRadius')}(number|Array) = 0
diff --git a/zh/option/partial/coord-sys.md b/zh/option/partial/coord-sys.md
index 9d62322..a64d1db 100644
--- a/zh/option/partial/coord-sys.md
+++ b/zh/option/partial/coord-sys.md
@@ -12,44 +12,36 @@
 {{ /if }}
 
 {{ if: ${cartesian2d} }}
-
 + `'cartesian2d'`
 
     使用二维的直角坐标系(也称笛卡尔坐标系),通过 [xAxisIndex](~series-${seriesType}.xAxisIndex), [yAxisIndex](~series-${seriesType}.yAxisIndex)指定相应的坐标轴组件。
 {{ /if }}
 
 {{ if: ${polar} }}
-
 + `'polar'`
 
     使用极坐标系,通过 [polarIndex](~series-${seriesType}.polarIndex) 指定相应的极坐标组件
 {{ /if }}
 
 {{ if: ${geo} }}
-
 + `'geo'`
 
     使用地理坐标系,通过 [geoIndex](~series-${seriesType}.geoIndex) 指定相应的地理坐标系组件。
 {{ /if }}
 
 {{ if: ${parallel} }}
-
 + `'parallel'`
 
     使用平行坐标系,通过 [parallelIndex](~series-${seriesType}.parallelIndex) 指定相应的平行坐标系组件。
 {{ /if }}
 
 {{ if: ${none} }}
-
 + `'none'`
 
     不使用坐标系。
 {{ /if }}
 
-
-
 {{ if: ${cartesian2d} }}
-
 ## xAxisIndex(number) = 0
 
 使用的 [x 轴](~xAxis)的 index,在单个图表实例中存在多个 x 轴的时候有用。
@@ -59,42 +51,27 @@
 使用的 [y 轴](~yAxis)的 index,在单个图表实例中存在多个 y轴的时候有用。
 {{ /if }}
 
-
-
 {{ if: ${polar} }}
-
 ## polarIndex(number) = 0
 
 使用的[极坐标系](~polar)的 index,在单个图表实例中存在多个极坐标系的时候有用。
-
 {{ /if }}
 
-
-
 {{ if: ${geo} }}
-
 ## geoIndex(number) = 0
 
 使用的[地理坐标系](~geo)的 index,在单个图表实例中存在多个地理坐标系的时候有用。
-
 {{ /if }}
 
-
-
 {{ if: ${parallel} }}
-
 ## parallelIndex(number) = 0
 
 使用的[平行坐标系](~parallel)的 index,在单个图表实例中存在多个平行坐标系的时候有用。
-
 {{ /if }}
 
-
 {{ if: ${calendar} }}
-
 ## calendarIndex(number) = 0
 
 使用的[日历坐标系](~calendar)的 index,在单个图表实例中存在多个日历坐标系的时候有用。
-
 {{ /if }}
 
diff --git a/zh/option/partial/data-transform.md b/zh/option/partial/data-transform.md
index 8defb73..3674d5e 100644
--- a/zh/option/partial/data-transform.md
+++ b/zh/option/partial/data-transform.md
@@ -5,7 +5,6 @@
 
 
 
-
 {{ target: partial-data-transform-print }}
 
 ### print(boolean) = false
diff --git a/zh/option/partial/encode-dimensions.md b/zh/option/partial/encode-dimensions.md
index ad0e808..9533dc9 100644
--- a/zh/option/partial/encode-dimensions.md
+++ b/zh/option/partial/encode-dimensions.md
@@ -131,7 +131,6 @@ var option = {
 
 
 
-
 {{ target: partial-series-dimensions }}
 
 #${prefix} dimensions(Array)
diff --git a/zh/option/partial/focus-blur-scope.md b/zh/option/partial/focus-blur-scope.md
index 76b0b25..8d035d9 100644
--- a/zh/option/partial/focus-blur-scope.md
+++ b/zh/option/partial/focus-blur-scope.md
@@ -12,9 +12,11 @@
 + `'none'` 不淡出其它图形,默认使用该配置。
 + `'self'` 只聚焦(不淡出)当前高亮的数据的图形。
 + `'series'` 聚焦当前高亮的数据所在的系列的所有图形。
+
 {{ if: ${isGraph} }}
 + `'adjacency'` 聚焦关系图中的邻接点和边的图形
-{{ elif:${isTree} }}
+
+{{ elif: ${isTree} }}
 + `'ancestor'` 聚焦所有祖先节点
 + `'descendant'` 聚焦所有子孙节点
 {{ /if }}
diff --git a/zh/option/partial/formatter.md b/zh/option/partial/formatter.md
index 75aae0e..4e7feb5 100644
--- a/zh/option/partial/formatter.md
+++ b/zh/option/partial/formatter.md
@@ -34,10 +34,12 @@
     dimensionIndex: number,
     // 数据图形的颜色
     color: string,
+
 {{ for: ${extra} as ${obj}, ${name} }}{{ if: ${extra}.hasOwnProperty(${name}) }}
     // ${obj.desc}
     ${name}: ${obj.type},
 {{ /if }}{{ /for }}
+
 }
 ```
 
diff --git a/zh/option/partial/icon.md b/zh/option/partial/icon.md
index fd8632a..0c78bef 100644
--- a/zh/option/partial/icon.md
+++ b/zh/option/partial/icon.md
@@ -9,7 +9,6 @@ ECharts 提供的标记类型包括
 
 
 
-
 {{ target: partial-icon-image-path }}
 
 可以通过 `'image://url'` 设置为图片,其中 URL 为图片的链接,或者 `dataURI`。
@@ -28,14 +27,12 @@ URL 为 `dataURI` 例如:
 
 
 
-
 {{ target: partial-icon-buildin }}
 
 `'circle'`, `'rect'`, `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`, `'none'`
 
 
 
-
 {{ target: partial-icon-path }}
 
 可以通过 `'path://'` 将图标设置为任意的矢量路径。这种方式相比于使用图片的方式,不用担心因为缩放而产生锯齿或模糊,而且可以设置为任意颜色。路径图形会自适应调整为合适的大小。路径的格式参见 [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)。可以从 Adobe Illustrator 等工具编辑导出。
diff --git a/zh/option/partial/item-style.md b/zh/option/partial/item-style.md
index 82931c0..df9676f 100644
--- a/zh/option/partial/item-style.md
+++ b/zh/option/partial/item-style.md
@@ -5,7 +5,6 @@ ${name} 图形样式。
 
 
 
-
 {{ target: partial-item-style }}
 
 #${prefix} color(Color{{ if: ${hasCallback} }}|Function{{ /if }})(*) = ${defaultColor|default('自适应')}
diff --git a/zh/option/partial/label.md b/zh/option/partial/label.md
index dbde1df..07ddb4c 100644
--- a/zh/option/partial/label.md
+++ b/zh/option/partial/label.md
@@ -5,7 +5,6 @@ ${name}图形上的文本标签,可用于说明图形的一些数据信息,
 
 
 
-
 {{ target: partial-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default("false")}
@@ -15,12 +14,11 @@ ${name}图形上的文本标签,可用于说明图形的一些数据信息,
 是否显示标签。
 
 {{ if: !${noPosition} }}
-
 #${prefix} position(string|Array) = ${defaultPosition}
 
 <ExampleUIControlEnum options="top,left,right,bottom,inside,insideLeft,insideRight,insideTop,insideBottom,insideTopLeft,insideBottomLeft,insideTopRight,insideBottomRight,outside" />
 
-{{ use: partial-label-position }}
+{{ use: partial-label-position() }}
 {{ /if }}
 
 #${prefix} distance(number) = 5
@@ -31,9 +29,7 @@ ${name}图形上的文本标签,可用于说明图形的一些数据信息,
 
 参见:[label position](${galleryEditorPath}doc-example/label-position)。
 
-
 {{ if: !${noRotate} }}
-
 #${prefix} rotate(number) = ${defaultRotate}
 
 <ExampleUIControlAngle default="${defaultRotate|default(0)}" min="-90" max="90" step="1" />
@@ -50,35 +46,32 @@ ${name}图形上的文本标签,可用于说明图形的一些数据信息,
 是否对文字进行偏移。默认不偏移。例如:`[30, 40]` 表示文字在横向上偏移 `30`,纵向上偏移 `40`。
 
 {{ if: ${formatter} }}
-
 #${prefix} formatter(string|Function)
 
-{{ use: partial-2d-data-label-formatter }}
-{{ elif:${formatter1d} }}
+{{ use: partial-2d-data-label-formatter() }}
 
+{{ elif: ${formatter1d} }}
 #${prefix} formatter(string|Function)
 
-{{ use: partial-1d-data-label-formatter }}
+{{ use: partial-1d-data-label-formatter() }}
 {{ /if }}
 
-
 {{ if: !${noTextStyle} }}
 {{ use: partial-text-style(
-    prefix=${prefix},
-    noAlign=${noAlign},
-    noVerticalAlign=${noVerticalAlign},
-    name=${name},
-    defaultColor=${defaultColor},
-    defaultFontSize=${defaultFontSize},
-    noRich=${noRich},
-    noBox=${noBox},
-    enableAutoColor=true
+    prefix = ${prefix},
+    noAlign = ${noAlign},
+    noVerticalAlign = ${noVerticalAlign},
+    name = ${name},
+    defaultColor = ${defaultColor},
+    defaultFontSize = ${defaultFontSize},
+    noRich = ${noRich},
+    noBox = ${noBox},
+    enableAutoColor = true
 ) }}
 {{ /if }}
 
 
 
-
 {{ target: partial-label-position }}
 
 标签的位置。
diff --git a/zh/option/partial/line-style.md b/zh/option/partial/line-style.md
index ee08b0d..17cad67 100644
--- a/zh/option/partial/line-style.md
+++ b/zh/option/partial/line-style.md
@@ -1,7 +1,7 @@
 
 {{ target: partial-line-style }}
 
-#${prefix} color(Color) = {{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'自适应'{{ /if }}
+#${prefix} color(Color) ={{ if: !${useColorPalatte} }} ${defaultColor|default('"#000"')} {{ else }}'自适应'{{ /if }}
 
 <ExampleUIControlColor />
 
@@ -42,7 +42,6 @@ ${name}线的类型。
 ) }}
 
 {{ if: ${hasCurveness} }}
-
 #${prefix} curveness(number) = 0
 
 <ExampleUIControlNumber min="0" max="1" step="0.01" default="0" />
diff --git a/zh/option/partial/mark-area.md b/zh/option/partial/mark-area.md
index daa8061..11c797b 100644
--- a/zh/option/partial/mark-area.md
+++ b/zh/option/partial/mark-area.md
@@ -46,6 +46,7 @@
 标域的数据数组。每个数组项是一个两个项的数组,分别表示标域左上角和右下角的位置,每个项支持通过下面几种方式指定自己的位置
 
 1. 通过 [x](~series-${seriesType}.markArea.data.0.x), [y](~series-${seriesType}.markArea.data.0.y) 属性指定相对容器的屏幕坐标,单位像素,支持百分比。
+
 {{ if: ${hasCoord} }}
 2. 用 [coord](~series-${seriesType}.markArea.data.0.coord) 属性指定数据在相应坐标系上的坐标位置,单个维度支持设置 `'min'`, `'max'`, `'average'`。
 {{ /if }}{{ if: ${hasType} }}
@@ -53,14 +54,16 @@
 
 4. 如果是笛卡尔坐标系的话,也可以通过只指定 `xAxis` 或者 `yAxis` 来实现 X 轴或者 Y 轴为某值的标域,见示例 [scatter-weight](${galleryEditorPath}scatter-weight)
 {{ /if }}
+
 当多个属性同时存在时,优先级按上述的顺序。
 
 {{ if: ${hasType} }}
-
 {{ /if }}
+
 ```
 data: [
-    {{ if: ${hasType} }}
+
+{{ if: ${hasType} }}
     [
         {
             name: '平均值到最大值',
@@ -70,7 +73,7 @@ data: [
             type: 'max'
         }
     ],
-    {{ /if }}{{ if: ${hasCoord} }}
+{{ /if }}{{ if: ${hasCoord} }}
     [
         {
             name: '两个坐标之间的标域',
@@ -96,7 +99,9 @@ data: [
             coord: ['max', 'max']
         }
     ],
-    {{ /if }}[
+{{ /if }}
+
+[
         {
             name: '两个屏幕坐标之间的标域',
             x: 100,
@@ -142,11 +147,9 @@ data: [
 
 
 
-
 {{ target: mark-area-data-item-item }}
 
 {{ if: ${hasType} }}
-
 #${prefix} type(string)
 
 <ExampleUIControlEnum options="min,max,average" />
@@ -158,8 +161,8 @@ data: [
 + `'max'` 最大值。
 + `'average'` 平均值。
 {{ /if }}
-{{ if: ${hasCoord} }}
 
+{{ if: ${hasCoord} }}
 #${prefix} valueIndex(number)
 
 <ExampleUIControlNumber min="0" max="1" step="1"  />
@@ -173,7 +176,6 @@ data: [
 #${prefix} coord(Array)
 
 起点或终点的坐标。坐标格式视系列的坐标系而定,可以是[直角坐标系](~grid)上的 `x`, `y`,也可以是[极坐标系](~polar)上的 `radius`, `angle`。
-
 {{ /if }}
 
 #${prefix} name(string) = '${name}'
diff --git a/zh/option/partial/mark-line.md b/zh/option/partial/mark-line.md
index 2d1f25e..5e52b94 100644
--- a/zh/option/partial/mark-line.md
+++ b/zh/option/partial/mark-line.md
@@ -62,6 +62,7 @@
 
 标线的数据数组。每个数组项可以是一个两个值的数组,分别表示线的起点和终点,每一项是一个对象,有下面几种方式指定起点或终点的位置。
 1. 通过 [x](~series-${seriesType}.markLine.data.0.x), [y](~series-${seriesType}.markLine.data.0.y) 属性指定相对容器的屏幕坐标,单位像素,支持百分比。
+
 {{ if: ${hasCoord} }}
 2. 用 [coord](~series-${seriesType}.markLine.data.0.coord) 属性指定数据在相应坐标系上的坐标位置,单个维度支持设置 `'min'`, `'max'`, `'average'`。
 {{ /if }}{{ if: ${hasType} }}
@@ -69,14 +70,17 @@
 
 4. 如果是笛卡尔坐标系的话,也可以通过只指定 `xAxis` 或者 `yAxis` 来实现 X 轴或者 Y 轴为某值的标线,见示例 [scatter-weight](${galleryEditorPath}scatter-weight)
 {{ /if }}
+
 当多个属性同时存在时,优先级按上述的顺序。
 
 {{ if: ${hasType} }}
 也可以是直接通过 `type` 设置该标线的类型,是最大值的线还是平均线。同样的,这时候可以通过使用 `valueIndex` 指定维度。
 {{ /if }}
+
 ```
 data: [
-    {{ if: ${hasType} }}{
+
+{{ if: ${hasType} }}{
         name: '平均线',
         // 支持 'average', 'min', 'max'
         type: 'average'
@@ -95,7 +99,7 @@ data: [
             type: 'max'
         }
     ],
-    {{ /if }}{{ if: ${hasCoord} }}[
+{{ /if }}{{ if: ${hasCoord} }}[
         {
             name: '两个坐标之间的标线',
             coord: [10, 20]
@@ -110,7 +114,9 @@ data: [
     }, {
         type: 'max'
     }],
-    {{ /if }}[
+{{ /if }}
+
+[
         {
             name: '两个屏幕坐标之间的标线',
             x: 100,
@@ -156,7 +162,6 @@ data: [
 
 
 
-
 {{ target: mark-line-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default(true)}
@@ -188,11 +193,9 @@ data: [
 
 
 
-
 {{ target: mark-line-data-item-item }}
 
 {{ if: ${hasType} }}
-
 #${prefix} type(string)
 
 <ExampleUIControlEnum options="min,max,average" />
@@ -205,8 +208,8 @@ data: [
 + `'average'` 平均值。
 + `'median'` 中位数。
 {{ /if }}
-{{ if: ${hasCoord} }}
 
+{{ if: ${hasCoord} }}
 #${prefix} valueIndex(number)
 
 <ExampleUIControlNumber min="0" max="1" step="1"  />
@@ -221,8 +224,7 @@ data: [
 
 起点或终点的坐标。坐标格式视系列的坐标系而定,可以是[直角坐标系](~grid)上的 `x`, `y`,也可以是[极坐标系](~polar)上的 `radius`, `angle`。
 
-{{ use: marker-coord-explain }}
-
+{{ use: marker-coord-explain() }}
 {{ /if }}
 
 #${prefix} name(string) = '${name}'
diff --git a/zh/option/partial/mark-point.md b/zh/option/partial/mark-point.md
index 01e0bfc..23a1b15 100644
--- a/zh/option/partial/mark-point.md
+++ b/zh/option/partial/mark-point.md
@@ -58,6 +58,7 @@
 
 标注的数据数组。每个数组项是一个对象,有下面几种方式指定标注的位置。
 1. 通过 [x](~series-${seriesType}.markPoint.data.x), [y](~series-${seriesType}.markPoint.data.y) 属性指定相对容器的屏幕坐标,单位像素,支持百分比。
+
 {{ if: ${hasCoord} }}
 2. 用 [coord](~series-${seriesType}.markPoint.data.coord) 属性指定数据在相应坐标系上的坐标位置,单个维度支持设置 `'min'`, `'max'`, `'average'`。
 {{ /if }}{{ if: ${hasType} }}
@@ -81,6 +82,7 @@ data: [{{ if: ${hasType} }}
         yAxis: 10,
         x: '90%'
     }, {{ /if }}
+
     {
         name: '某个屏幕坐标',
         x: 100,
@@ -92,8 +94,8 @@ data: [{{ if: ${hasType} }}
 ###${prefix} name(string) = ''
 
 标注名称。
-{{ if: ${hasType} }}
 
+{{ if: ${hasType} }}
 ###${prefix} type(string)
 
 <ExampleUIControlEnum options="min,max,average" />
@@ -105,8 +107,8 @@ data: [{{ if: ${hasType} }}
 + `'max'` 最大值。
 + `'average'` 平均值。
 {{ /if }}
-{{ if: ${hasCoord} }}
 
+{{ if: ${hasCoord} }}
 ###${prefix} valueIndex(number)
 
 <ExampleUIControlNumber min="0" max="1" step="1"  />
@@ -121,8 +123,7 @@ data: [{{ if: ${hasType} }}
 
 标注的坐标。坐标格式视系列的坐标系而定,可以是[直角坐标系](~grid)上的 `x`, `y`,也可以是[极坐标系](~polar)上的 `radius`, `angle`。例如 [121, 2323]、['aa', 998]。
 
-{{ use: marker-coord-explain }}
-
+{{ use: marker-coord-explain() }}
 {{ /if }}
 
 ###${prefix} x(number)
diff --git a/zh/option/partial/marker.md b/zh/option/partial/marker.md
index 32c43cf..cd898f2 100644
--- a/zh/option/partial/marker.md
+++ b/zh/option/partial/marker.md
@@ -25,7 +25,6 @@
 
 
 
-
 {{ target: marker-coord-explain }}
 
 **注:**对于 [axis.type](~xAixs.type) 为 `'category'` 类型的轴
diff --git a/zh/option/partial/parallel.md b/zh/option/partial/parallel.md
index 8bb4619..6025a04 100644
--- a/zh/option/partial/parallel.md
+++ b/zh/option/partial/parallel.md
@@ -126,7 +126,6 @@ option = {
 
 
 
-
 {{ target: partial-parallel-data-example }}
 
 例如 [series-parallel.data](~series-parallel.data) 中有如下数据:
@@ -148,14 +147,12 @@ option = {
 
 
 
-
 {{ target: partial-parallel-axis-default }}
 
 配置多个 [parallelAxis](~parallelAxis) 时,有些值一样的属性,如果书写多遍则比较繁琐,那么可以放置在 [parallel.parallelAxisDefault](~parallel.parallelAxisDefault) 里。在坐标轴初始化前,[parallel.parallelAxisDefault](~parallel.parallelAxisDefault) 里的配置项,会分别融合进 [parallelAxis](~parallelAxis),形成最终的坐标轴的配置。
 
 
 
-
 {{ target: partial-parallel-high-dim }}
 
 维度比较多时,比如有 50+ 的维度,那么就会有 50+ 个轴。那么可能会页面显示不下。
diff --git a/zh/option/partial/progressive.md b/zh/option/partial/progressive.md
index 7da22b3..518386a 100644
--- a/zh/option/partial/progressive.md
+++ b/zh/option/partial/progressive.md
@@ -15,12 +15,10 @@
 启用渐进式渲染的图形数量阈值,在单个系列的图形数量超过该阈值时启用渐进式渲染。
 
 {{ if: ${supportProgressiveChunkMode} }}
-
 #${prefix} progressiveChunkMode(string) = ${defaultProgressiveChunkMode|default('sequential')}
 
 分片的方式。可选值:
 + `'sequential'`: 按照数据的顺序分片。缺点是渲染过程不自然。
 + `'mod'`: 取模分片,即每个片段中的点会遍布于整个数据,从而能够视觉上均匀得渲染。
-
 {{ /if }}
 
diff --git a/zh/option/partial/rect-layout.md b/zh/option/partial/rect-layout.md
index f427d87..a8fb1b6 100644
--- a/zh/option/partial/rect-layout.md
+++ b/zh/option/partial/rect-layout.md
@@ -3,9 +3,9 @@
 
 {{ if: !${noZ} }}
 {{ use: partial-z-zlevel(
-    prefix=${prefix},
-    defaultZLevel=${defaultZLevel},
-    defaultZ=${defaultZ}
+    prefix = ${prefix},
+    defaultZLevel = ${defaultZLevel},
+    defaultZ = ${defaultZ}
 ) }}
 {{ /if }}
 
diff --git a/zh/option/partial/roam.md b/zh/option/partial/roam.md
index 1edd047..342bef2 100644
--- a/zh/option/partial/roam.md
+++ b/zh/option/partial/roam.md
@@ -7,7 +7,6 @@
 
 
 
-
 {{ target: partial-scale-limit }}
 
 滚轮缩放的极限控制,通过`min`, `max`最小和最大的缩放值,默认的缩放为`1`。
diff --git a/zh/option/partial/selected-mode.md b/zh/option/partial/selected-mode.md
index 11619a0..77f0bb0 100644
--- a/zh/option/partial/selected-mode.md
+++ b/zh/option/partial/selected-mode.md
@@ -4,7 +4,9 @@
 ## selectedMode(boolean|string) = false
 
 {{ if: ${version} }}
-{{ use: partial-version(version = ${version}) }}
+{{ use: partial-version(
+    version = ${version}
+) }}
 {{ /if }}
 
 <ExampleUIControlEnum options="true,false,single,multiple" />
diff --git a/zh/option/partial/style-shadow-opacity.md b/zh/option/partial/style-shadow-opacity.md
index ce09054..9688526 100644
--- a/zh/option/partial/style-shadow-opacity.md
+++ b/zh/option/partial/style-shadow-opacity.md
@@ -51,7 +51,6 @@
 
 
 
-
 {{ target: partial-style-opacity }}
 
 #${prefix} opacity(number) = ${defaultOpacity|default(1)}
@@ -62,7 +61,6 @@
 
 
 
-
 {{ target: partial-style-shadow-opacity }}
 
 {{ use: partial-style-shadow(
diff --git a/zh/option/partial/symbol.md b/zh/option/partial/symbol.md
index bafd136..913d7cc 100644
--- a/zh/option/partial/symbol.md
+++ b/zh/option/partial/symbol.md
@@ -44,7 +44,6 @@ ${name}标记的旋转角度(而非弧度)。正值表示逆时针旋转。
 ```
 其中第一个参数 `value` 为 [data](~series-${seriesType}.data) 中的数据值。第二个参数`params` 是其它的数据项参数。
 > 从 4.8.0 开始支持回调函数。
-
 {{ /if }}
 
 #${prefix} symbolKeepAspect(boolean) = false
diff --git a/zh/option/partial/text-style.md b/zh/option/partial/text-style.md
index 4bc6e45..6e289d5 100644
--- a/zh/option/partial/text-style.md
+++ b/zh/option/partial/text-style.md
@@ -14,7 +14,6 @@
 
 
 
-
 {{ target: partial-text-style }}
 
 {{ use: partial-text-style-base-item(
@@ -59,7 +58,6 @@
 + `'truncate'` 在文本行数超出高度部分截断。
 
 {{ if: !${noRich} }}
-
 #${prefix} rich(Object)
 
 在 `rich` 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。
@@ -105,15 +103,13 @@ label: {
 ##${prefix} <style_name>(Object)
 
 {{ use: partial-text-style-base-item(
-    prefix=${prefix} + '##',
-    enableAutoColor=${enableAutoColor}
+    prefix = ${prefix} + '##',
+    enableAutoColor = ${enableAutoColor}
 ) }}
-
 {{ /if }}
 
 
 
-
 {{ target: partial-text-style-base-item }}
 
 #${prefix} color(Color) = ${defaultColor|default('"#fff"')}
@@ -122,9 +118,8 @@ label: {
 
 ${name}文字的颜色。
 
-
 {{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} fontStyle(string) = 'normal'
@@ -165,9 +160,7 @@ ${name}文字的字体系列。
 
 ${name}文字的字体大小。
 
-
- {{ if: !${noAlign} }}
-
+{{ if: !${noAlign} }}
 #${prefix} align(string) = ${defaultAlign}
 
 <ExampleUIControlEnum options="left,center,right" />
@@ -180,14 +173,12 @@ ${name}文字的字体大小。
 + `'right'`
 
 {{ use: partial-text-style-rich-inherit(
-    name='align',
-    value='right'
+    name = 'align',
+    value = 'right'
 ) }}
-
 {{ /if }}
 
 {{ if: !${noVerticalAlign} }}
-
 #${prefix} verticalAlign(string) = ${defaultVerticalAlign}
 
 <ExampleUIControlEnum options="top,middle,bottom" />
@@ -200,10 +191,9 @@ ${name}文字的字体大小。
 + `'bottom'`
 
 {{ use: partial-text-style-rich-inherit(
-    name='verticalAlign',
-    value='bottom'
+    name = 'verticalAlign',
+    value = 'bottom'
 ) }}
-
 {{ /if }}
 
 #${prefix} lineHeight(number)
@@ -218,7 +208,6 @@ ${name}文字的字体大小。
 ) }}
 
 {{ if: !${noBox} }}
-
 #${prefix} backgroundColor(string|Object) = 'transparent'
 
 <ExampleUIControlColor default="#fff" />
@@ -242,7 +231,7 @@ backgroundColor: {
 当使用图片的时候,可以使用 `width` 或 `height` 指定高宽,也可以不指定自适应。
 
 {{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} borderColor(Color) = 'transparent'
@@ -252,7 +241,7 @@ backgroundColor: {
 文字块边框颜色。
 
 {{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} borderWidth(number) = 0
@@ -302,7 +291,6 @@ backgroundColor: {
 <ExampleUIControlNumber step="0.5" />
 
 文字块的背景阴影 Y 偏移。
-
 {{ /if }}
 
 #${prefix} width(number|string)
@@ -330,7 +318,7 @@ backgroundColor: {
 文字本身的描边颜色。
 
 {{ if: ${enableAutoColor} }}
-{{ use: partial-text-style-auto-color-desc }}
+{{ use: partial-text-style-auto-color-desc() }}
 {{ /if }}
 
 #${prefix} textBorderWidth(number) = 0
@@ -365,14 +353,12 @@ backgroundColor: {
 
 
 
-
 {{ target: partial-text-style-auto-color-desc }}
 
 如果设置为 `'auto'`,则为视觉映射得到的颜色,如系列色。
 
 
 
-
 {{ target: partial-text-style-rich-inherit }}
 
 `rich` 中如果没有设置 `${name}`,则会取父层级的 `${name}`。例如:
diff --git a/zh/option/partial/tooltip-common.md b/zh/option/partial/tooltip-common.md
index d142b38..d14458c 100644
--- a/zh/option/partial/tooltip-common.md
+++ b/zh/option/partial/tooltip-common.md
@@ -18,7 +18,6 @@
 
 
 
-
 {{ target: partial-tooltip-in-coords }}
 
 ## tooltip(Object)
@@ -40,7 +39,6 @@
 
 
 
-
 {{ target: partial-tooltip-in-series }}
 
 ## tooltip(Object)
@@ -54,7 +52,6 @@
 
 
 
-
 {{ target: partial-tooltip-in-series-data }}
 
 ### tooltip(*)
@@ -68,19 +65,18 @@
 
 
 
-
 {{ target: partial-tooltip-scope-tip }}
 
 {{ if: ${scope} === 'series' }}
 <br>
 > **注意:**`series.tooltip` 仅在 [tooltip.trigger](~tooltip.trigger) 为 `'item'` 时有效。<br>
-{{ elif:${scope} === 'seriesData' }}
+
+{{ elif: ${scope} === 'seriesData' }}
 > **注意:**`series.data.tooltip` 仅在 [tooltip.trigger](~tooltip.trigger) 为 `'item'` 时有效。<br>
 {{ /if }}
 
 
 
-
 {{ target: partial-tooltip-coords-common }}
 
 #${prefix} show(boolean) = true
@@ -168,7 +164,6 @@
 
 
 
-
 {{ target: partial-tooltip-common }}
 
 #${prefix} position(string|Array|Function)
diff --git a/zh/option/partial/zr-graphic.md b/zh/option/partial/zr-graphic.md
index 9ab4812..bc2bd33 100644
--- a/zh/option/partial/zr-graphic.md
+++ b/zh/option/partial/zr-graphic.md
@@ -61,7 +61,6 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
 ) }}
 
 {{ if: ${usageType} === 'customSeries' }}
-
 #${prefix} ${hostName}${symbolDeclare}path(Object)
 
 可使用 [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData) 做路径。
@@ -72,15 +71,14 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
 
 关于制定尺寸、拉伸还是平铺,参见 [layout](~${optionPath}.${hostName}${symbolVisit}path.shape.layout)。
 
-
 {{ use: partial-graphic-cpt-common-props(
-    type='path',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    type = 'path',
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} shape(Object)
@@ -112,53 +110,52 @@ group 是唯一的可以有子节点的容器。group 可以用来整体定位
 + `'center'`:保持原来的 PathData 的长宽比,居于矩形中,尽可能撑大但不会超出矩形。
 + `'cover'`:PathData 拉伸为矩形的长宽比,完全填满矩形,不会超出矩形。
 
-
 {{ use: partial-graphic-cpt-sub-prop-xy(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
+
 {{ use: partial-graphic-cpt-sub-prop-wh(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} style(Object)
 
 {{ use: partial-graphic-cpt-style-prop-common(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 {{ use: partial-graphic-cpt-style-emphasis(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 {{ use: partial-graphic-cpt-event-handlers(
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
-
 {{ /if }}
 
 #${prefix} ${hostName}${symbolDeclare}image(Object)
@@ -901,7 +898,6 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
 
 
 
-
 {{ target: partial-graphic-cpt-common-props }}
 
 ##${prefix} type(string) = ${type}
@@ -921,9 +917,7 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
 
 id 用于在更新或删除图形元素时指定更新哪个图形元素,如果不需要用可以忽略。
 
-
 {{ if: ${usageType} === 'graphicComponent' }}
-
 ##${prefix} $action(string) = 'merge'
 
 setOption 时指定本次对该图形元素的操作行为。
@@ -932,7 +926,6 @@ setOption 时指定本次对该图形元素的操作行为。
 + `'merge'`:如果已有元素,则新的配置项和已有的设定进行 merge。如果没有则新建。
 + `'replace'`:如果已有元素,删除之,新建元素替代之。
 + `'remove'`:删除元素。
-
 {{ /if }}
 
 {{ use: partial-graphic-transform(
@@ -945,53 +938,52 @@ setOption 时指定本次对该图形元素的操作行为。
 ) }}
 
 {{ if: ${usageType} === 'graphicComponent' }}
-
 ##${prefix} left(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'h',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} right(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'h',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} top(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'v',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} bottom(number|string) = undefined
 
-{{ use: partial-graphic-cpt-location-prop-desc-common (
+{{ use: partial-graphic-cpt-location-prop-desc-common(
     hv = 'v',
-    prefix=${prefix},
-    optionPath=${optionPath},
-    usageType=${usageType},
-    hostName=${hostName},
-    symbolVisit=${symbolVisit},
-    symbolDeclare=${symbolDeclare}
+    prefix = ${prefix},
+    optionPath = ${optionPath},
+    usageType = ${usageType},
+    hostName = ${hostName},
+    symbolVisit = ${symbolVisit},
+    symbolDeclare = ${symbolDeclare}
 ) }}
 
 ##${prefix} bounding(strin) = 'all'
@@ -1018,12 +1010,9 @@ z 方向的高度,决定层叠关系。
 ##${prefix} zlevel(number) = 0
 
 决定此元素绘制在哪个 canvas 层中。注意,越多 canvas 层会占用越多资源。
-
 {{ /if }}
 
-
 {{ if: ${usageType} === 'customSeries' }}
-
 ##${prefix} z2(number) = undefined
 
 用于决定图形元素的覆盖关系。
@@ -1031,8 +1020,6 @@ z 方向的高度,决定层叠关系。
 ##${prefix} name(string) = undefined
 
 参见 [diffChildrenByName](~${optionPath}.${hostName}${symbolVisit}polygon.diffChildrenByName)。
-
-
 {{ /if }}
 
 ##${prefix} info(*)
@@ -1057,11 +1044,10 @@ chart.on('click', function (params) {
 
 节点是否完全被忽略(既不渲染,也不响应事件)。
 
-
-
 {{ if: ${usageType} === 'graphicComponent' }}
-
-{{ use: partial-cursor(prefix="##") }}
+{{ use: partial-cursor(
+    prefix = "##"
+) }}
 
 ##${prefix} draggable(boolean) = false
 
@@ -1070,12 +1056,10 @@ chart.on('click', function (params) {
 ##${prefix} progressive(boolean) = false
 
 是否渐进式渲染。当图形元素过多时才使用。
-
 {{ /if }}
 
 
 
-
 {{ target: partial-graphic-cpt-style-prop-common }}
 
 注:关于图形元素中更多的样式设置(例如 [富文本标签](tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE)),参见 [zrender/graphic/Displayable](https://ecomfe.github.io/zrender-doc/public/api.html#zrenderdisplayable) 中的 style 相关属性。
@@ -1118,7 +1102,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-path-common }}
 
 ###${prefix} points(Array)
@@ -1138,7 +1121,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-location-prop-desc-common }}
 
 描述怎么根据父元素进行定位。
@@ -1155,6 +1137,7 @@ chart.on('click', function (params) {
 [left](~${optionPath}.${hostName}${symbolVisit}polygon.left) 和 [right](~${optionPath}.${hostName}${symbolVisit}polygon.right) 只有一个可以生效。
 
 如果指定 [left](~${optionPath}.${hostName}${symbolVisit}polygon.left) 或 [right](~${optionPath}.${hostName}${symbolVisit}polygon.right),则 [shape](~${optionPath}.${hostName}${symbolVisit}polygon.shape) 里的 `x`、`cx` 等定位属性不再生效。
+
 {{ else }}
 [top](~${optionPath}.${hostName}${symbolVisit}polygon.top) 和 [bottom](~${optionPath}.${hostName}${symbolVisit}polygon.bottom) 只有一个可以生效。
 
@@ -1163,7 +1146,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-xy }}
 
 ###${prefix} x(number) = 0
@@ -1176,7 +1158,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-cxy }}
 
 ###${prefix} cx(number) = 0
@@ -1189,7 +1170,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-wh }}
 
 ###${prefix} width(number) = 0
@@ -1202,7 +1182,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-r }}
 
 ###${prefix} r(number) = 0
@@ -1211,7 +1190,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-rr0 }}
 
 {{ use: partial-graphic-cpt-sub-prop-r(
@@ -1229,7 +1207,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-x1y1x2y2 }}
 
 ###${prefix} x1(number) = 0
@@ -1250,7 +1227,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-sub-prop-angle }}
 
 ###${prefix} startAngle(number) = 0
@@ -1267,11 +1243,9 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-event-handlers }}
 
 {{ if: ${usageType} === 'graphicComponent' }}
-
 ##${prefix} onclick(Function)
 
 ##${prefix} onmouseover(Function)
@@ -1299,12 +1273,10 @@ chart.on('click', function (params) {
 ##${prefix} ondragover(Function)
 
 ##${prefix} ondrop(Function)
-
 {{ /if }}
 
 
 
-
 {{ target: partial-graphic-transform }}
 
 ##${prefix} position(Array) = [0, 0]
@@ -1349,7 +1321,6 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-transform-common-desc }}
 
 图形元素可以进行标准的 `2D transform`,其中包含:
@@ -1365,21 +1336,17 @@ chart.on('click', function (params) {
 
 
 
-
 {{ target: partial-graphic-cpt-style-emphasis }}
 
 {{ if: ${usageType} === 'customSeries' }}
-
 ##${prefix} styleEmphasis(Object)
 
 图形元素高亮时的样式。
 结构同 [style](~${optionPath}.${hostName}${symbolVisit}polygon.style) 相同。
-
 {{ /if }}
 
 
 
-
 {{ target: partial-graphic-cpt-type-list }}
 
 [image](~${optionPath}.${hostName}${symbolVisit}image),
diff --git a/zh/option/series/bar.md b/zh/option/series/bar.md
index 2a2b353..1f5bd79 100644
--- a/zh/option/series/bar.md
+++ b/zh/option/series/bar.md
@@ -295,13 +295,13 @@ option = {
 
 
 
-
 {{ target: partial-bar-state }}
 
 #${prefix} label(Object)
 
 {{ if: ${topLevel} }}
-{{ use: partial-label-desc }}
+{{ use: partial-label-desc() }}
+
 {{ else }}
 单个数据的文本配置。
 {{ /if }}
@@ -315,7 +315,8 @@ option = {
 #${prefix} itemStyle(Object)
 
 {{ if: ${topLevel} }}
-{{ use: partial-item-style-desc }}
+{{ use: partial-item-style-desc() }}
+
 {{ else }}
 单个数据的图形样式设置。
 {{ /if }}
@@ -328,7 +329,6 @@ option = {
 
 
 
-
 {{ target: partial-bar-item-style }}
 
 #${prefix} color(Color) = ${defaultColor|default('自适应')}
diff --git a/zh/option/series/candlestick.md b/zh/option/series/candlestick.md
index 7f75df4..c783ba6 100644
--- a/zh/option/series/candlestick.md
+++ b/zh/option/series/candlestick.md
@@ -409,7 +409,6 @@ K 线图的高亮图形样式。
 
 
 
-
 {{ target: partial-candlestick-item-style-detail }}
 
 #${prefix} color(Color) = ${defaultColor}
diff --git a/zh/option/series/custom.md b/zh/option/series/custom.md
index 2852818..9c5d4bc 100644
--- a/zh/option/series/custom.md
+++ b/zh/option/series/custom.md
@@ -459,7 +459,6 @@ renderItem 函数的第二个参数。
 
 
 
-
 {{ target: partial-custom-renderItem-common }}
 
 custom 系列需要开发者自己提供图形渲染的逻辑。这个渲染逻辑一般命名为 [renderItem](~series-custom.renderItem)。例如:
@@ -516,7 +515,6 @@ var option = {
 
 
 
-
 {{ target: partial-custom-dataIndex-dataIndexInside }}
 
 + `dataIndex` 指的 `dataItem` 在原始数据中的 index。
diff --git a/zh/option/series/funnel.md b/zh/option/series/funnel.md
index 152da6a..7c8175d 100644
--- a/zh/option/series/funnel.md
+++ b/zh/option/series/funnel.md
@@ -292,13 +292,11 @@ option = {
 
 
 
-
 {{ target: partial-funnel-label }}
 
 #${prefix} show(boolean) = false
 
 {{ if: ${position} }}
-
 #${prefix} position(string) = 'outside'
 
 标签的位置。
@@ -320,18 +318,19 @@ option = {
 
 在不是配置为内部的时候标签可以通过[视觉引导线](~series-funnel.labelLine)连到相应的梯形。
 通过[视觉引导线](~series-funnel.labelLine)连到相应的梯形。
-
 {{ /if }}
-{{ if: ${formatter} }}
 
+{{ if: ${formatter} }}
 #${prefix} formatter(string|Function)
 
-{{ use: partial-1d-data-label-formatter(extra = {
+{{ use: partial-1d-data-label-formatter(
+    extra = {
     percent: {
         desc: '百分比',
         type: 'number'
     }
-}) }}
+}
+) }}
 {{ /if }}
 
 {{ use: partial-text-style(
@@ -340,14 +339,13 @@ option = {
 
 
 
-
 {{ target: partial-funnel-label-line }}
 
 #${prefix} show(boolean)
 
 是否显示视觉引导线。
-{{ if: ${length} }}
 
+{{ if: ${length} }}
 #${prefix} length(number)
 
 视觉引导线的长度。
diff --git a/zh/option/series/graph.md b/zh/option/series/graph.md
index 98106bf..f156803 100644
--- a/zh/option/series/graph.md
+++ b/zh/option/series/graph.md
@@ -516,7 +516,6 @@ links: [{
 
 
 
-
 {{ target: graph-edge-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default(false)}
diff --git a/zh/option/series/lines.md b/zh/option/series/lines.md
index c2dd69d..b20fa78 100644
--- a/zh/option/series/lines.md
+++ b/zh/option/series/lines.md
@@ -243,7 +243,6 @@ ECharts 2.x 里会用地图上的 `markLine` 去绘制迁徙效果,在 ECharts
 
 
 
-
 {{ target: lines-label }}
 
 #${prefix} show(boolean) = ${defaultShowLabel|default(false)}
diff --git a/zh/option/series/parallel.md b/zh/option/series/parallel.md
index 1eebeb8..f0159ce 100644
--- a/zh/option/series/parallel.md
+++ b/zh/option/series/parallel.md
@@ -256,7 +256,6 @@ const option = {
 
 
 
-
 {{ target: partial-parallel-line-style }}
 
 #${prefix} lineStyle(Object)
diff --git a/zh/option/series/pictorialBar.md b/zh/option/series/pictorialBar.md
index a3e71dc..8f7def2 100644
--- a/zh/option/series/pictorialBar.md
+++ b/zh/option/series/pictorialBar.md
@@ -254,7 +254,6 @@ option = {
 
 
 
-
 {{ target: pictorialBar-symbol-attrs }}
 
 #${prefix} symbol(string) = 'circle'
@@ -504,11 +503,9 @@ itemStyle: {
 ) }}
 
 {{ if: ${useZ2} }}
-
 #${prefix} z(number)
 
 指定图形元素间的覆盖关系。数值越大,越在层叠的上方。
-
 {{ /if }}
 
 #${prefix} hoverAnimation(boolean) = false
@@ -532,7 +529,6 @@ itemStyle: {
 
 
 
-
 {{ target: pictorialBar-animation-delay }}
 
 #${prefix} animationDelay(number|Function) = 0
@@ -573,7 +569,6 @@ animationDelay: function (dataIndex, params) {
 
 
 
-
 {{ target: pictorialBar-symbol-attrs-cascade }}
 
 此属性可以被设置在系列的 [根部](~series-pictorialBar.${attrName}),表示对此系列中所有数据都生效;也可以被设置在 [data](series-pictorialBar.data) 中的 [每个数据项中](~series-pictorialBar.data.${attrName}),表示只对此数据项生效。
diff --git a/zh/option/series/pie.md b/zh/option/series/pie.md
index 631a869..2b50863 100644
--- a/zh/option/series/pie.md
+++ b/zh/option/series/pie.md
@@ -362,13 +362,11 @@ const option = {
 
 
 
-
 {{ target: partial-pie-label }}
 
 #${prefix} show(boolean) = false
 
 {{ if: ${position} }}
-
 #${prefix} position(string) = 'outside'
 
 标签的位置。
@@ -386,18 +384,19 @@ const option = {
 + `'center'`
 
     在饼图中心位置。见[圆环图示例](${galleryEditorPath}pie-doughnut)
-
 {{ /if }}
-{{ if: ${formatter} }}
 
+{{ if: ${formatter} }}
 #${prefix} formatter(string|Function)
 
-{{ use: partial-1d-data-label-formatter(extra = {
+{{ use: partial-1d-data-label-formatter(
+    extra = {
     percent: {
         desc: '百分比',
         type: 'number'
     }
-}) }}
+}
+) }}
 {{ /if }}
 
 #${prefix} rotate(boolean|number) = null
@@ -413,7 +412,6 @@ const option = {
 
 
 
-
 {{ target: partial-pie-label-line }}
 
 #${prefix} show(boolean)
@@ -421,23 +419,23 @@ const option = {
 <ExampleUIControlBoolean />
 
 是否显示视觉引导线。
-{{ if: ${length} }}
 
+{{ if: ${length} }}
 #${prefix} length(number)
 
 <ExampleUIControlNumber default="15" min="0" step="1" />
 
 视觉引导线第一段的长度。
 {{ /if }}
-{{ if: ${length2} }}
 
+{{ if: ${length2} }}
 #${prefix} length2(number)
 
 <ExampleUIControlNumber default="15" min="0" step="1" />
 视觉引导项第二段的长度。
 {{ /if }}
-{{ if: ${smooth} }}
 
+{{ if: ${smooth} }}
 #${prefix} smooth(boolean|number) = false
 
 <ExampleUIControlBoolean />
diff --git a/zh/option/series/sankey.md b/zh/option/series/sankey.md
index b41246d..2c64e5d 100644
--- a/zh/option/series/sankey.md
+++ b/zh/option/series/sankey.md
@@ -348,7 +348,6 @@ links: [{
 
 
 
-
 {{ target: partial-sankey-line-style }}
 
 #${prefix} color(Color) = "'#314656'"
diff --git a/zh/option/series/series.md b/zh/option/series/series.md
index e69de29..8b13789 100644
--- a/zh/option/series/series.md
+++ b/zh/option/series/series.md
@@ -0,0 +1 @@
+
diff --git a/zh/option/series/sunburst.md b/zh/option/series/sunburst.md
index 981e1a5..97a9a5d 100644
--- a/zh/option/series/sunburst.md
+++ b/zh/option/series/sunburst.md
@@ -40,7 +40,6 @@
 
 
 
-
 {{ target: partial-sunburst-label-props }}
 
 ${prefix} label(Object)
@@ -57,7 +56,6 @@ ${prefix} label(Object)
 
 
 
-
 {{ target: partial-sunburst-itemStyle-props }}
 
 ${prefix} itemStyle(Object)
@@ -80,7 +78,6 @@ ECharts 中,通常使用 *emphasis* 表示鼠标移动到图形上后的高亮
 
 
 
-
 {{ target: partial-sunburst-other-state }}
 
 #${prefix} emphasis(Object)
@@ -121,7 +118,6 @@ ECharts 中,通常使用 *emphasis* 表示鼠标移动到图形上后的高亮
 
 
 
-
 {{ target: series-sunburst }}
 
 # series.sunburst(Object)
diff --git a/zh/option/series/tree.md b/zh/option/series/tree.md
index 17a68d4..df90536 100644
--- a/zh/option/series/tree.md
+++ b/zh/option/series/tree.md
@@ -328,7 +328,6 @@ const option = {
 
 
 
-
 {{ target: partial-tree-line-style }}
 
 #${prefix} color(Color) = "'#ccc'"
diff --git a/zh/option/series/treemap.md b/zh/option/series/treemap.md
index 44874ac..af7e020 100644
--- a/zh/option/series/treemap.md
+++ b/zh/option/series/treemap.md
@@ -544,7 +544,6 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
 
 
 
-
 {{ target: partial-treemap-level-props }}
 
 #${prefix} visualDimension(number) = 0
@@ -576,14 +575,15 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
 手动指定 `visualMin`、`visualMax` ,即手动控制了 visual mapping 的值域(当 [colorMappingBy](~series-treemap.levels.colorMappingBy) 为 `'value'` 时有意义)。
 
 {{ if: ${prefix} !== '#' }}
-
 #${prefix} color(Array)
 
 表示同一层级的节点的 颜色 选取列表(选择规则见 [colorMappingBy](~series-treemap.colorMappingBy))。默认为空时,选取系统color列表。
 
-{{ use: partial-treemap-visual-detial }}
-{{ use: partial-treemap-prop-location-desc(name="color") }}
+{{ use: partial-treemap-visual-detial() }}
 
+{{ use: partial-treemap-prop-location-desc(
+    name = "color"
+) }}
 {{ /if }}
 
 #${prefix} colorAlpha(Array) = null
@@ -754,25 +754,24 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
 
 
 
-
 {{ target: partial-treemap-prop-location-desc }}
 
 <br>
 > 注:treemap中 `${name}` 属性可能在多处地方存在:
+
 {{ if: ${name} !== 'color' }}> * 于 [sereis-treemap](~series-treemap) 根下,表示本系列全局的统一设置。{{ /if }}
+
 > * 于 [series-treemap.levels](~series-treemap.levels) 的每个数组元素中,表示树每个层级的统一设置。
 > * 于 [series-treemap.data](~series-treemap.data) 的每个节点中,表示每个节点的特定设置。
 
 
 
-
 {{ target: partial-treemap-visual-detial }}
 
 关于视觉设置,详见 [series-treemap.levels](~series-treemap.levels)。
 
 
 
-
 {{ target: partial-treemap-item-style }}
 
 #${prefix} color(Color) = null
@@ -782,7 +781,6 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
 矩形的颜色。默认从全局调色盘 [option.color](~color) 获取颜色。
 
 {{ if: ${itemStyleType} === 'normal' }}
-
 #${prefix} colorAlpha(number) = null
 
 <ExampleUIControlNumber step="0.01" min="0" max="1" default="1" />
@@ -826,17 +824,16 @@ treemap 默认把第一个维度(Array 第一项)映射到『面积』上。
 如果设置此属性,则 `borderColor` 的设置无效,而是:取当前节点计算出的颜色(比如从父节点遗传而来),在此颜色值上设置 `borderColorSaturation` 得到最终颜色。这种方式,能够做出『不同区块有不同色调的矩形间隔线』的效果,能够便于区分层级。
 
 <br>
-{{ use: partial-treemap-borderColor-setting(galleryEditorPath=${galleryEditorPath}) }}
+
+{{ use: partial-treemap-borderColor-setting() }}
 
 {{ use: partial-style-shadow-opacity(
-    prefix=${prefix}
+    prefix = ${prefix}
 ) }}
-
 {{ /if }}
 
 
 
-
 {{ target: partial-treemap-borderColor-setting }}
 
 **矩形边框(border)/缝隙(gap)设置如何避免混淆**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org