Skip to content

Conversation

cmcculloh-kr
Copy link

@cmcculloh-kr cmcculloh-kr commented Oct 30, 2023

This addresses security concerns with old versions of both of these libraries.

These vulnerabilities were found through an internal tool called "Snyk". You can see the vulnerability reports below. Basically the issue is that you need to upgrade your versions of remarkable and highlight.js.

image
image

assert.equal(
actual,
'<h1>EEE</h1>\n<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> message = <span class="hljs-string">\'This is an alert\'</span>;\n<span class="hljs-title function_">alert</span>(message);\n</code></pre>\n'
);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proper syntax for the code block is to specify a language after the triple back-ticks. If you remove javascript from test/fixtures/e.md this assert will pass without needing this modification, however you'll get a warning in your console notifying you that you forgot to pass in a language. Once I tested this and confirmed that it worked (without the javascript) I went ahead and added it and then updated the assertion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant