Copied!

Event dispatched when the document is about to be parsed

CloneableFinalInstantiable
Methods
public __construct(League\CommonMark\Node\Block\Document $document, League\CommonMark\Input\MarkdownInputInterface $markdown)
public getDocument() : League\CommonMark\Node\Block\Document
public getMarkdown() : League\CommonMark\Input\MarkdownInputInterface
public final League\CommonMark\Event\AbstractEvent::isPropagationStopped() : bool
 

Returns whether further event listeners should be triggered.

public replaceMarkdown(League\CommonMark\Input\MarkdownInputInterface $markdownInput) : void
public final League\CommonMark\Event\AbstractEvent::stopPropagation() : void
 

Stops the propagation of the event to further event listeners.

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().

Properties
private League\CommonMark\Node\Block\Document $document
 
  • psalm-readonly
private League\CommonMark\Input\MarkdownInputInterface $markdown
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration