summaryrefslogtreecommitdiff
path: root/node_modules/markdown-it/lib/rules_core/inline.js
blob: 4c33d0d7de643c37ac77fb6fc093485d8c675259 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';

module.exports = function inline(state) {
  var tokens = state.tokens, tok, i, l;

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