I’m using the Maruku markdown processor. I’d like this
JavaScript
x
7
1
*blah* blah "blah" in [markdown](blah)
2
3
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
4
<script>
5
do stuff
6
</script>
7
but it complains when I render it with a multitude of errors. The first one being
JavaScript
1
9
1
___________________________________________________________________________
2
| Maruku tells you:
3
+---------------------------------------------------------------------------
4
| Could you please format this better?
5
| I see that "<script type='text/javascript'>" is left after the raw HTML.
6
| At line 31
7
| raw_html |<script src='http://code.jquery.com/jquery-1.4.2.min.js' /><script type='text/javascript'>|
8
| text --> |//<![CDATA[|
9
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.