Class: MarkdownIt::RulesCore::Inline

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-markdown-it/rules_core/inline.rb

Class Method Summary collapse

Class Method Details

.inline(state) ⇒ Object




6
7
8
9
10
11
12
13
14
15
16
# 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