- render(tree) ⇒
String
Render PostHTML Tree to HTML
Render PostHTML Tree to HTML
Kind: global function
Returns: String
- HTML
Param | Type | Description |
---|---|---|
tree | Array | Object |
PostHTML Tree @param {Object} options Options |
- render(tree) ⇒
String
- ~options :
Object
- ~html(tree) ⇒
String
- ~options :
Options
Kind: inner property of render
Properties
Name | Type | Description |
---|---|---|
singleTags | Array.<(String|RegExp)> |
Custom single tags (selfClosing) |
closingSingleTag | String |
Closing format for single tag @prop |
quoteAllAttributes | Boolean |
If all attributes should be quoted. Otherwise attributes will be unquoted when allowed. |
replaceQuote | Boolean |
Replaces quotes in attribute values with "e; Formats: tag: `<br></br>` , slash: <br /> , default: <br> ``` |
HTML Stringifier
Kind: inner method of render
Returns: String
- result HTML
Param | Type | Description |
---|---|---|
tree | Array | Object |
PostHTML Tree |