class

Crst::InlineParser

Inherits Reference < Object

Parser for inline RST markup

This class implements parsing of inline markup with correct precedence:

  1. Hyperlinks (standalone URIs, emails)
  2. Roles (:role:text)
  3. Interpreted text (text)
  4. Code (text)
  5. Strong (text)
  6. Emphasis (text)
  7. References and targets

Constructors

new(config : Config = Config.new)
Source

Instance methods

parse(text : String) : Array(Node)

Parse inline markup in text and return array of nodes

Source