You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception has been thrown during the rendering of a template ("Cannot add two delimiter processors for char "*" and minimum length 1").
The problem is caused by the League\CommonMark\CommonMarkConverter class adding the CommonMarkCoreExtension instance in the constructor which conflicts with the InlinesOnlyExtension class (the two extensions are exclusive).
Next idea is to make a factory that creates my App\...\CommonMarkConverter class, which is a descendant of MarkdownConverter. This again causes an exception:
An exception has been thrown during the rendering of a template ("Twig\Extra\Markdown\LeagueMarkdown::__construct(): Argument # 1 ($converter) must be of type ?League\CommonMark\CommonMarkConverter, App\Services\Markdown\CommonMarkConverter given, called in /server/www/nepenektar.hu/www/var/cache/dev/ContainerFNl1gdv/getTwig_Runtime_MarkdownService.php on line 30").
My assumption is that the Twig\Extra\Markdown\LeagueMarkdown constructor argument type is wrong, League\CommonMark\MarkdownConverter would be enough.
I think there's a bug somewhere, but I asked the question here because I might be missing something and have other options.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The answer to the question in the title is this:
but this causes an exception:
The problem is caused by the
League\CommonMark\CommonMarkConverter
class adding theCommonMarkCoreExtension
instance in the constructor which conflicts with theInlinesOnlyExtension
class (the two extensions are exclusive).Next idea is to make a factory that creates my
App\...\CommonMarkConverter
class, which is a descendant ofMarkdownConverter
. This again causes an exception:My assumption is that the
Twig\Extra\Markdown\LeagueMarkdown
constructor argument type is wrong,League\CommonMark\MarkdownConverter
would be enough.I think there's a bug somewhere, but I asked the question here because I might be missing something and have other options.
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions