class MarkdownIt::RulesCore::Inline

Public Class Methods

inline(state) click to toggle source
# File lib/motion-markdown-it/rules_core/inline.rb, line 6
def self.inline(state)
  tokens = state.tokens

  # Parse inlines
  0.upto(tokens.length - 1) do |i|
    tok = tokens[i]
    if tok.type == 'inline'
      state.md.inline.parse(tok.content, state.md, state.env, tok.children)
    end
  end
end