docs: fix vertical pipe formatting
This commit is contained in:
parent
8cbd1a5f4c
commit
52ef95f151
2 changed files with 73 additions and 57 deletions
|
|
@ -34,7 +34,7 @@ for (var propName in base) {
|
|||
|
||||
|
||||
doc.push(`
|
||||
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h4> | \`${prop.type.replace(/\|/g,'\`\\|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'<br/>')}</code> | ${help} |`
|
||||
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h4> | \`${prop.type.replace(/\|/g,'\`|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'<br/>')}</code> | ${help} |`
|
||||
)
|
||||
|
||||
}
|
||||
|
|
@ -84,7 +84,7 @@ for (var k in widgets.categories) {
|
|||
dynamic = widgets.widgets[type].dynamicProps.includes(propName) ? '<i class="dynamic-prop-icon" title="dynamic"></i>' : ''
|
||||
|
||||
doc.push(`
|
||||
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h4> | \`${prop.type.replace(/\|/g,'\`\\|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'<br/>')}</code> | ${help} |`
|
||||
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h4> | \`${prop.type.replace(/\|/g,'\`|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'<br/>')}</code> | ${help} |`
|
||||
)
|
||||
separator = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue