@@ -22,7 +22,7 @@ npm install hast-util-to-html
2222
2323``` js
2424var h = require (' hastscript' )
25- var toHTML = require (' hast-util-to-html' )
25+ var toHtml = require (' hast-util-to-html' )
2626
2727var tree = h (' .alpha' , [
2828 ' bravo ' ,
@@ -31,7 +31,7 @@ var tree = h('.alpha', [
3131 h (' a.echo' , {download: true }, ' foxtrot' )
3232])
3333
34- console .log (toHTML (tree))
34+ console .log (toHtml (tree))
3535```
3636
3737Yields:
@@ -42,7 +42,7 @@ Yields:
4242
4343## API
4444
45- ### ` toHTML (tree[, options])`
45+ ### ` toHtml (tree[, options])`
4646
4747Stringify the given [ ** hast** ] [ hast ] [ * tree* ] [ tree ] .
4848
@@ -51,14 +51,14 @@ Stringify the given [**hast**][hast] [*tree*][tree].
5151Whether the [ * root* ] [ root ] of the [ * tree* ] [ tree ] is in the ` 'html' ` or ` 'svg' `
5252space (enum, ` 'svg' ` or ` 'html' ` , default: ` 'html' ` ).
5353
54- If an ` svg ` element is found in the HTML space, ` toHTML ` automatically switches
54+ If an ` svg ` element is found in the HTML space, ` toHtml ` automatically switches
5555to the SVG space when entering the element, and switches back when exiting.
5656
5757###### ` options.entities `
5858
5959Configuration for [ ` stringify-entities ` ] [ stringify-entities ] (` Object ` , default:
6060` {} ` ).
61- Do not use ` escapeOnly ` , ` attribute ` , or ` subset ` (` toHTML ` already passes
61+ Do not use ` escapeOnly ` , ` attribute ` , or ` subset ` (` toHtml ` already passes
6262those, so they won’t work).
6363However, ` useNamedReferences ` , ` useShortestReferences ` , and
6464` omitOptionalSemicolons ` are all fine.
@@ -170,7 +170,7 @@ When falsey, encodes `raw` nodes (`boolean`, default: `false`).
170170## Related
171171
172172* [ ` hast-util-sanitize ` ] [ hast-util-sanitize ]
173- — Sanitize HAST nodes
173+ — Sanitize hast nodes
174174* [ ` rehype-stringify ` ] ( https://github.com/wooorm/rehype/tree/master/packages/rehype-stringify )
175175 — Wrapper around this project for [ ** rehype** ] ( https://github.com/wooorm/rehype )
176176
0 commit comments