I have checked this code over and over but I cant see what I am missing.
Maybe a second pair of eyes can help me see why I am not passing the two tests
My Codepen
The test I am not passing is
When my markdown previewer first loads, the default text in the #editor field should contain valid markdown that represents at least one of each of the following elements: a header (H1 size), a sub header (H2 size), a link, inline code, a code block, a list item, a blockquote, an image, and bolded text
lasjorg
November 24, 2021, 5:22pm
3
Use the import instead.
import * as marked from "https://cdn.skypack.dev/marked@4.0.4";
Edit2: This has been fixed.
Edit: Quick update. We know what is wrong with the tests and they are getting fixed, hopefully soon. After the fix has landed the markedjs library should work again when using the Codepen settings or a script element to load the library. But until then keep using import.
The library has been updated and you now have to use import for Codepen.
Import it at the top of the JS like this.
import { marked } from "https://cdn.skypack.dev/marked@4.0.0";
And remove the s…
Thanks for the link. Great tips from that solution thread.
system
Closed
May 31, 2022, 5:50pm
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.