Skip to content

Declare MarkDelimiterProcessor as a cacheable delimiter processor#1133

Open
GrahamCampbell wants to merge 1 commit into
thephpleague:2.8from
GrahamCampbell:highlight-cacheable-delimiter
Open

Declare MarkDelimiterProcessor as a cacheable delimiter processor#1133
GrahamCampbell wants to merge 1 commit into
thephpleague:2.8from
GrahamCampbell:highlight-cacheable-delimiter

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Member

MarkDelimiterProcessor has a dynamic getDelimiterUse(), which the DelimiterProcessorInterface contract says must be paired with CacheableDelimiterProcessorInterface, as the emphasis and strikethrough processors both do. The class already defines a suitable getCacheKey(), but without declaring the interface that method was dead code and the delimiter engine's cached opener-search path was never used for == runs. This one-line change declares the interface properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant