This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/remark-stringify/lib/visitors/text.js
2020-11-01 22:46:04 +00:00

20 lines
358 B
JavaScript

'use strict'
module.exports = text
// Stringify text.
// Supports named entities in `settings.encode: true` mode:
//
// ```markdown
// AT&T
// ```
//
// Supports numbered entities in `settings.encode: numbers` mode:
//
// ```markdown
// AT&T
// ```
function text(node, parent) {
return this.encode(this.escape(node.value, node, parent), node)
}