WIP - add extractor, generate snippet_data
This commit is contained in:
18
node_modules/remark-stringify/lib/visitors/strong.js
generated
vendored
Normal file
18
node_modules/remark-stringify/lib/visitors/strong.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var repeat = require('repeat-string');
|
||||
|
||||
module.exports = strong;
|
||||
|
||||
/* Stringify a `strong`.
|
||||
*
|
||||
* The marker used is configurable by `strong`, which
|
||||
* defaults to an asterisk (`'*'`) but also accepts an
|
||||
* underscore (`'_'`):
|
||||
*
|
||||
* __foo__
|
||||
*/
|
||||
function strong(node) {
|
||||
var marker = repeat(this.options.strong, 2);
|
||||
return marker + this.all(node).join('') + marker;
|
||||
}
|
||||
Reference in New Issue
Block a user