How to add a markdown .md file to codepen

Hi, how do I add a file with an .md extension to my project in codepen. It’s for the Markdown Previewer challenge. I need it to make an .md document appear on page load. As the challenge asks me.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Build a Markdown Previewer

Link to the challenge:

With codepen, I think it would be easier to hardcode that info as a string in your JS pane. You can’t really create other files in CP - though you might be able to with a premium account. There are other online IDEs that will let you create files, but I think that is too much work for this little project.

I can’t do as a string. It is very large and has line breaks.

Hi @rodrigocabrera19 !

As mentioned, you cannot add files to pens in codepen.

You will have to either create a project in codepen or use something else like codesandbox.

Ok, thank you!!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.