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