How to load a javascript file and run a javascript method in java?
<p>I'm using <a href="https://github.com/chjj/marked" rel="nofollow">marked</a> on the client side to render markdown code to html.</p>

<p>But now I need to do the same thing on the server side which is Java. In order to get the exact same html code, I have to use marked other than other java markdown libraries.</p>

<p>How can I load the "marked.js" file in java and run the javascript code?</p>

<pre><code>marked.parser(marked.lexer("**hello,world**"));
</code></pre>
