Skip to content

Commit

Permalink
Update to league/commonmark 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chirsz-ever committed Nov 5, 2022
1 parent baad9d6 commit 4a0e189
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions daux/VulkanLinkProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
use League\CommonMark\ElementRendererInterface;
use League\CommonMark\InlineParserContext;
use League\CommonMark\HtmlElement;
use League\CommonMark\Inline\Parser\AbstractInlineParser;
use League\CommonMark\Inline\Parser\InlineParserInterface;
use League\CommonMark\Inline\Renderer\InlineRendererInterface;
use League\CommonMark\Inline\Element\AbstractInline;
use League\CommonMark\Inline\Element\Code;
use League\CommonMark\Util\Xml;

class VulkanLinkParser extends AbstractInlineParser {
public function getCharacters() {
class VulkanLinkParser implements InlineParserInterface {
public function getCharacters(): array {
return ['v', 'V'];
}

public function parse(InlineParserContext $inlineContext) {
public function parse(InlineParserContext $inlineContext): bool {
$cursor = $inlineContext->getCursor();

// Ensure that 'v' is the first character of this word
Expand Down

0 comments on commit 4a0e189

Please sign in to comment.