Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.8 KB

render.md

File metadata and controls

64 lines (45 loc) · 1.8 KB

Modules

posthtml-render

Functions

render(tree)String

Render PostHTML Tree to HTML

posthtml-render

Version: 1.1.5
License: MIT

render(tree) ⇒ String

Render PostHTML Tree to HTML

Kind: global function
Returns: String - HTML

Param Type Description
tree Array | Object PostHTML Tree @param {Object} options Options

render~options : Object

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 &quote; Formats: tag: `<br></br>`, slash: <br /> , default: <br> ```

render~html(tree) ⇒ String

HTML Stringifier

Kind: inner method of render
Returns: String - result HTML

Param Type Description
tree Array | Object PostHTML Tree