.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / remark-stringify / lib / visitors / text.js
1 'use strict';
2
3 module.exports = text;
4
5 /* Stringify text.
6  * Supports named entities in `settings.encode: true` mode:
7  *
8  *     AT&T
9  *
10  * Supports numbered entities in `settings.encode: numbers`
11  * mode:
12  *
13  *     AT&T
14  */
15 function text(node, parent) {
16   return this.encode(this.escape(node.value, node, parent), node);
17 }