class markdown::Delimiter

sys::Obj
  markdown::Delimiter

@Js

Source

Delimiter (emphasis, strong emphasis, or custom emphasis)

canClose

const Bool canClose

Source

can close emphasis, see spec.

canOpen

const Bool canOpen

Source

can open emphasis, see spec.

chars

Text[] chars { private set }

Source

closer

Text closer()

Source

Return the innermost closing delimiter, e.g. for *** this is the first *

closers

Text[] closers(Int len)

Source

Get the closing delimiter nodes for the specified number of delimiters.

For example, for a delimiter run ***, calling this with 1 would return the first *, calling it with 2 would return the first * and the second *.

delimChar

const Int delimChar

Source

make

new make(Text[] chars, Int delimChar, Bool canOpen, Bool canClose, Delimiter? prev)

Source

next

Delimiter? next

Source

opener

Text opener()

Source

Return the innermost opening delimiter, e.g. for *** this is the last *

openers

Text[] openers(Int len)

Source

Get the opening delimiter nodes for the specified number of delimiters.

For example, for a delimiter run ***, calling this with 1 would return the last *. Calling it with 2 would return the second last * and last *.

origSize

const Int origSize

Source

The number of characters originally in this delimiter run; at the start of processing, this is the same as size

prev

Delimiter? prev

Source

size

Int size()

Source

The number of characters in this delimiter run (that are left for processing)

toStr

virtual override Str toStr()

Source