class Crst::InlineParser

Overview

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

Defined in:

crst/inline_parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config = Config.new) #

[View source]

Instance Method Detail

def parse(text : String) : Array(Node) #

Parse inline markup in text and return array of nodes


[View source]