russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.46k stars 602 forks source link

Regression: broken multiple class syntax in <pre><code> #478

Open VitalyPankin opened 6 years ago

VitalyPankin commented 6 years ago

Expected behaviour:

'''{sql copy }
___code_string___
'''

causes:

<pre>
<code class="language-sql copy">
</code>
</pre>

This was VERY useful. For example to add additional widgets to it. After this commit https://github.com/russross/blackfriday/commit/11635eb403ff09dbc3a6b5a007ab5ab09151c229#diff-828dd0a8d7cd5268cf01a99a90fd7c21 this flow is broken and it displays ONLY first class in a row:

' ' '{sql copy class2 class3}
___code_string___
' ' '

causes:

<pre>
<code class="language-sql">
</code>
</pre>

This breaks too many things at a time. Pls fix.

VitalyPankin commented 6 years ago

@rtfb pls take a look