Sha256: 704f6153ba2f54632a2add7cf7f84c9ee4a170f64aede05c929716b14fa230d0

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

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
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/mdast-util-to-markdown/lib/handle/blockquote.js