Skip to content
Advertisement

Embed javascript in markdown

I’m using the Maruku markdown processor. I’d like this

JavaScript

but it complains when I render it with a multitude of errors. The first one being

JavaScript

and then the rest seems like the parser is going nuts. Then it renders the javascript into a div on the page. I’ve tried making it a CDATA block and extra spacing between the jquery and my script.

Help?

Advertisement

Answer

I had this same problem, but I managed to get JavaScript to appear in my code by putting a newline after the opening tag.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement