parsedown icon indicating copy to clipboard operation
parsedown copied to clipboard

[bug] embeded <style> tag gets treated as text after the first code block

Open miragecraft opened this issue 1 year ago • 0 comments

This bug report is for the latest 1.8 beta release included in Kirby CMS.

Embedded <style> tag like so:

Some regular *markdown* text.

<style>
.red {
  color:red;
}

.blue {
  color:blue;
}
</style>

<span class="red">Some red text.</span>

<span class="blue">Some blue text.</span>

Is parsed as:

<p>Some regular <em>markdown</em> text.</p>

<style>
.red {
  color:red;
}
<p>.blue {<br />
color:blue;<br />
}</p>
</style>

<p><span class="red">Some red text.</span></p>
<p><span class="blue">Some blue text.</span></p>

miragecraft avatar Aug 15 '23 16:08 miragecraft