.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / remark-stringify / lib / visitors / emphasis.js
1 'use strict';
2
3 module.exports = emphasis;
4
5 /* Stringify an `emphasis`.
6  *
7  * The marker used is configurable through `emphasis`, which
8  * defaults to an underscore (`'_'`) but also accepts an
9  * asterisk (`'*'`):
10  *
11  *     *foo*
12  */
13 function emphasis(node) {
14   var marker = this.options.emphasis;
15   return marker + this.all(node).join('') + marker;
16 }