packages/remark-parse/lib/tokenize/list.js
function pedanticListItem(ctx, value, position) {
  var offsets = ctx.offset
  var line = position.line

  // Remove the list-item’s bullet.
  value = value.replace(pedanticBulletExpression, replacer)

  // The initial line was also matched by the below, so we reset the `line`.
  line = position.line

  return value.replace(initialIndentExpression, replacer)

  // A simple replacer which removed all matches, and adds their length to
  // `offset`.
  function replacer($0) {
    offsets[line] = (offsets[line] || 0) + $0.length
    line++

    return ''
  }
}
function pedanticListItem(ctx, value, position) {
  var offsets = ctx.offset
  var line = position.line

  // Remove the list-item’s bullet.
  value = value.replace(pedanticBulletExpression, replacer)

  // The initial line was also matched by the below, so we reset the `line`.
  line = position.line

  return value.replace(initialIndentExpression, replacer)

  // A simple replacer which removed all matches, and adds their length to
  // `offset`.
  function replacer($0) {
    offsets[line] = (offsets[line] || 0) + $0.length
    line++

    return ''
  }
}
function pedanticListItem ( ctx , value , position ) { var offsets = ctx . offset var line = position . line // Remove the list-item’s bullet. value = value . replace ( pedanticBulletExpression , replacer ) // The initial line was also matched by the below, so we reset the `line`. line = position . line return value . replace ( initialIndentExpression , replacer ) // A simple replacer which removed all matches, and adds their length to // `offset`. function replacer ( $0 ) { offsets [ line ] = ( offsets [ line ] || 0 ) + $0 . length line ++ return '' } }
Create a list-item using overly simple mechanics.
Create a list - item using overly simple mechanics .