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