Event-based setup of CommonMark and HTMLPurifier
-
Set up CommonMark and HTMLPurifier libraries in an event-based manner.
-
Remove the hideous
MarkdownContext
service. If request context is needed in determining how to parse Markdown, then listeners can use Symfony's TokenStorage/RequestStack for this. -
The cache key for Markdown context is now also determined via events.
-
Replace most instances of the name 'CommonMark' with 'Markdown'.