Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
71
rated 0 times [  72] [ 1]  / answers: 1 / hits: 83286  / 14 Years ago, sun, may 2, 2010, 12:00:00

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></script>
<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?


More From » markdown

 Answers
15

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


[#96905] Wednesday, April 28, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
estefanib

Total Points: 508
Total Questions: 104
Total Answers: 83

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;