views:

133

answers:

1

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

*blah* blah "blah" in [markdown](blah)

<script src="http://code.jquery.com/jquery-1.4.2.min.js"&gt;&lt;/script&gt;
<script>
...do stuff...
</script>

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

 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could you please format this better?
| I see that "<script type='text/javascript'>" is left after the raw HTML.
| At line 31
|   raw_html     |<script src='http://code.jquery.com/jquery-1.4.2.min.js' /><script type='text/javascript'>|
|       text --> |//<![CDATA[|

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?

A: 

Wild guess: there shouldn't be single quotes in your <script> tags. As far as I know, that's nonstandard, and if so, then Markdown wouldn't be required to recognise it.

Edit: The example they give on their site shows an empty <script> tag containing a newline. Maybe that's it?

Jon Purdy
it is markdown that is creating that... my actual code is `<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script><script type="text/javascript">`
Paul Tarjan