Guides

LiteralTextRole extends BaseTextRole
in package

FinalYes

Role to create a literal block.

A literal block is a block of text that is displayed as-is, without any formatting.

Example:

:literal:`code`

Table of Contents

Properties

$class  : string
$name  : string

Methods

getAliases()  : array<string|int, string>
getClass()  : string
getName()  : string
processNode()  : GenericTextRoleInlineNode
setClass()  : void
withName()  : BaseTextRole

Properties

Methods

getAliases()

public getAliases() : array<string|int, string>
Return values
array<string|int, string>

getClass()

public getClass() : string
Return values
string

getName()

public getName() : string
Return values
string

setClass()

public setClass(string $class) : void
Parameters
$class : string

        
On this page

Search results