You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
363 B
15 lines
363 B
module.exports = blockquote |
|
|
|
var flow = require('../util/container-flow') |
|
var indentLines = require('../util/indent-lines') |
|
|
|
function blockquote(node, _, context) { |
|
var exit = context.enter('blockquote') |
|
var value = indentLines(flow(node, context), map) |
|
exit() |
|
return value |
|
} |
|
|
|
function map(line, index, blank) { |
|
return '>' + (blank ? '' : ' ') + line |
|
}
|
|
|