class TUI::Markdown::CodeBlock

Overview

Lines are kept verbatim (not inline-parsed) — code shouldn't be subject to emphasis scanning or word-wrap, since either would change its meaning.

Defined in:

tui/markdown/block.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(lines : Array(String), language : String | Nil = nil) #

[View source]

Instance Method Detail

def language : String | Nil #

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

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

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

[View source]