12 lines
172 B
JavaScript
12 lines
172 B
JavaScript
'use strict'
|
|
|
|
module.exports = strikethrough
|
|
|
|
var tilde = '~'
|
|
|
|
var fence = tilde + tilde
|
|
|
|
function strikethrough(node) {
|
|
return fence + this.all(node).join('') + fence
|
|
}
|