summaryrefslogtreecommitdiff
path: root/packages/markdown-it-14.1.0/lib/rules_core/inline.mjs
blob: efd6c0706dd62e0a89ed0c6d4ab90d17159e3c4a (plain)
1
2
3
4
5
6
7
8
9
10
11
export default function inline (state) {
  const tokens = state.tokens

  // Parse inlines
  for (let i = 0, l = tokens.length; i < l; i++) {
    const tok = tokens[i]
    if (tok.type === 'inline') {
      state.md.inline.parse(tok.content, state.md, state.env, tok.children)
    }
  }
}