Open smusoke opened 3 years ago
We've also run into this issue, https://github.com/alphagov/learn-to-code/issues/56, I think it is because Redcarpet doesn't treat HTML blocks in the same way the CommonMark spec does [1]... In CommonMark you can have Markdown between two HTML tags as long as there is an empty line between the tags and the Markdown, whereas in Redcarpet it looks like whenever it finds a valid HTML tag it immediately looks for the closing tag [2].
Would the maintainers of Redcarpet be interested in a PR that changed the behaviour of Redcarpet in HTML blocks to match the CommonMark spec?
When upgrading from
3.3.4
there seems to be a regression with processing content nested within<details>
and<summary>
tags. Tested this up to version3.5.1
and the results were all the same - leading me to believe the regression was introduced in version3.4.0
. With no changes other than version number, this code snippet resulted several bugs including bold text and tables. There very well could be more.Using version
3.3.4
Using version
3.4.0
+