Copied!
CloneableFinalInstantiable
Methods
public __construct(array $allowList = [], bool $allowUnsafeLinks = true)
 
  • param list<string> $allowList
public processDocument(League\CommonMark\Event\DocumentParsedEvent $event) : void
Constants
private League\CommonMark\Extension\Attributes\Event\AttributesListener::DIRECTION_PREFIX = 'prefix'
private League\CommonMark\Extension\Attributes\Event\AttributesListener::DIRECTION_SUFFIX = 'suffix'
Properties
private array $allowList
 
  • var list<string>
private bool $allowUnsafeLinks
Methods
private static findTargetAndDirection( $node) : array
 
  • param \Attributes|\AttributesInline $node
  • return (\Node|string|null)[]
private static getNext(?League\CommonMark\Node\Node $node = NULL) : ?League\CommonMark\Node\Node
 

Get any previous block (sibling or parent) this might apply to

private static getPrevious(?League\CommonMark\Node\Node $node = NULL) : ?League\CommonMark\Node\Node
 

Get any previous block (sibling or parent) this might apply to

private static isAttributesNode(League\CommonMark\Node\Node $node) : bool
Methods
private static findTargetAndDirection( $node) : array
 
  • param \Attributes|\AttributesInline $node
  • return (\Node|string|null)[]
private static getNext(?League\CommonMark\Node\Node $node = NULL) : ?League\CommonMark\Node\Node
 

Get any previous block (sibling or parent) this might apply to

private static getPrevious(?League\CommonMark\Node\Node $node = NULL) : ?League\CommonMark\Node\Node
 

Get any previous block (sibling or parent) this might apply to

private static isAttributesNode(League\CommonMark\Node\Node $node) : bool
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration