-
Notifications
You must be signed in to change notification settings - Fork 71
HTML-wrapped code blocks contents are parsed #363
Comments
Interesting case! Thanks for reporting 👍 What's happening here is, everything in the HTML block is being left alone, and since the block is basically malformed HTML, the second backtick gets interpreted as being style content inside the I verified this in the live marky tester by changing GitHub's behavior here is kind of fascinating. At least in a gist, At first blush, it almost looks like |
I created a demonstration gist showing the rendering results of embedding different HTML tags. Looks like we need to special-case the following tags:
|
Great analysis! You're right backticks were a red herring, I stripped them all from your gist and results are the same. |
Looks like most of these are fairly straightforward to implement, but there are a couple things to note:
@ashleygwilliams any thoughts? |
GitHub's Markdown parser doesn't seem to parse backticks-contained text even when put inside of HTML; the following Markdown:
will render just fine while marky-markdown cuts everything off after the
<style>
part. This broke readme of Webpack'sstyle-loader
; see https://www.npmjs.com/package/style-loader & webpack-contrib/style-loader#227.The text was updated successfully, but these errors were encountered: