Skip to content

fix: allow style tags in markdown

Moritz Stückler requested to merge fix/allow-style-tag-in-markdown into development
  • Currently <style> tags are not working inside of Markdown content – even though they should (it's a valid HTML block inside of Markdown) – this makes HTML layout inside the pages very cumbersome b/c only inline styling is allowed
  • The problem is in Laravels Markdown parser / the GFM specification. It explicitly states, that a style tag needs to be escaped for security reasons.
  • To avoid the problem, the Markdown Parser needs to be manually configured with the DisallowedRawHtmlExtension extension
  • How can this whole setup be used in a proper OOP way, without repeated code in every Markdown getter method? Is there something loke global Model helpers? @shorty1o1
Edited by Moritz Stückler

Merge request reports

Loading