AbstractReferenceTextRole
in package
implements
TextRole
uses
EmbeddedReferenceParser
AbstractYes
Tags
Table of Contents
Interfaces
Properties
- $useRawContent : bool
- $referenceRegex : string
- https://regex101.com/r/KadqKx/1
Methods
- processNode() : AbstractLinkInlineNode
- createNode() : AbstractLinkInlineNode
- extractEmbeddedReference() : ReferenceData
Properties
$useRawContent
protected
bool
$useRawContent
= false
$referenceRegex
https://regex101.com/r/KadqKx/1
private
string
$referenceRegex
= '/^(.*?)(<([^<]+)>)?$/s'
Methods
processNode()
public
processNode(DocumentParserContext $documentParserContext, string $role, string $content, string $rawContent) : AbstractLinkInlineNode
Parameters
- $documentParserContext : DocumentParserContext
- $role : string
- $content : string
-
the content with backslash escapes removed per spec
- $rawContent : string
-
the raw content, including backslash escapes
Return values
AbstractLinkInlineNodecreateNode()
protected
abstract createNode(string $referenceTarget, string|null $referenceName, string $role) : AbstractLinkInlineNode
Parameters
- $referenceTarget : string
- $referenceName : string|null
- $role : string
Return values
AbstractLinkInlineNodeextractEmbeddedReference()
private
extractEmbeddedReference(string $text) : ReferenceData
Parameters
- $text : string