class Crst::Config

Overview

Configuration for parsing and rendering RST documents

Defined in:

crst/config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(unsafe : Bool = false) #

[View source]

Instance Method Detail

def admonition_classes : Hash(String, String) #

Custom CSS classes for admonitions


[View source]
def admonition_classes=(admonition_classes : Hash(String, String)) #

Custom CSS classes for admonitions


[View source]
def allowed_include_paths : Array(String) #

Allowed paths for include directive (empty means allow all relative paths)


[View source]
def allowed_include_paths=(allowed_include_paths : Array(String)) #

Allowed paths for include directive (empty means allow all relative paths)


[View source]
def authors : Array(String) #

[View source]
def authors=(authors : Array(String)) #

[View source]
def custom_directives : Hash(String, DirectiveHandler) #

Custom directive handlers Proc takes: name, arguments, options, children, config -> Array(Node)


[View source]
def custom_directives=(custom_directives : Hash(String, DirectiveHandler)) #

Custom directive handlers Proc takes: name, arguments, options, children, config -> Array(Node)


[View source]
def date : String | Nil #

[View source]
def date=(date : String | Nil) #

[View source]
def encoding : String #

Output encoding (default: "utf-8")


[View source]
def encoding=(encoding : String) #

Output encoding (default: "utf-8")


[View source]
def language : String | Nil #

Language for code blocks (default: nil, auto-detect)


[View source]
def language=(language : String | Nil) #

Language for code blocks (default: nil, auto-detect)


[View source]
def meta : Hash(String, String) #

[View source]
def meta=(meta : Hash(String, String)) #

[View source]
def roles : Hash(String, String) #

Custom role definitions


[View source]
def roles=(roles : Hash(String, String)) #

Custom role definitions


[View source]
def substitutions : Hash(String, Array(Crst::Node)) #

Substitution definitions


[View source]
def substitutions=(substitutions : Hash(String, Array(Crst::Node))) #

Substitution definitions


[View source]
def tab_width : Int32 #

Tab width for indentation (default: 8)


[View source]
def tab_width=(tab_width : Int32) #

Tab width for indentation (default: 8)


[View source]
def title : String | Nil #

Document metadata


[View source]
def title=(title : String | Nil) #

Document metadata


[View source]
def unsafe=(unsafe : Bool) #

Allow unsafe content (HTML pass-through, raw directives, etc.)


[View source]
def unsafe? : Bool #

Allow unsafe content (HTML pass-through, raw directives, etc.)


[View source]