code: 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 ''
    }
  }
docs: Create a list-item using overly simple mechanics.