This commit is contained in:
22
node_modules/remark-stringify/lib/visitors/blockquote.js
generated
vendored
Normal file
22
node_modules/remark-stringify/lib/visitors/blockquote.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = blockquote
|
||||
|
||||
var lineFeed = '\n'
|
||||
var space = ' '
|
||||
var greaterThan = '>'
|
||||
|
||||
function blockquote(node) {
|
||||
var values = this.block(node).split(lineFeed)
|
||||
var result = []
|
||||
var length = values.length
|
||||
var index = -1
|
||||
var value
|
||||
|
||||
while (++index < length) {
|
||||
value = values[index]
|
||||
result[index] = (value ? space : '') + value
|
||||
}
|
||||
|
||||
return greaterThan + result.join(lineFeed + greaterThan)
|
||||
}
|
||||
Reference in New Issue
Block a user