summaryrefslogtreecommitdiff
path: root/packages/markdown-it-14.1.0/lib/rules_core/state_core.mjs
blob: a96c8fbcd1b68b50b422785696ccf211c99bdd54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Core state object
//

import Token from '../token.mjs'

function StateCore (src, md, env) {
  this.src = src
  this.env = env
  this.tokens = []
  this.inlineMode = false
  this.md = md // link to parser instance
}

// re-export Token class to use in core rules
StateCore.prototype.Token = Token

export default StateCore