Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For Markdown -> HTML, there is <a href="https://github.com/showdownjs/showdown" rel="nofollow noreferrer">Showdown</a></p> <p>StackOverflow itself uses Markdown language for questions and answers ; did you try to take a look at how it works ?</p> <p>Well, it seems it is using <a href="http://code.google.com/p/pagedown/" rel="nofollow noreferrer">PageDown</a> which is available under the MIT License</p> <p>The question <a href="https://stackoverflow.com/questions/134235/is-there-any-good-markdown-javascript-library-or-control">Is there any good Markdown Javascript library or control?</a> and its answers might help, too :-)</p> <p><br> A full editor is, of course, not exactly what you asked for ; but they must use some kind of function to transform the Markdown code to HTML ; and, depending on the license of these editors, you might be able to re-use that function...</p> <p>Actually, if you take a close look at Showdown, in its code source <em>(file showdown.js)</em>, you'll find this portion of comment :</p> <pre><code>// // Showdown usage: // // var text = "Markdown *rocks*."; // // var converter = new Showdown.converter(); // var html = converter.makeHtml(text); // // alert(html); // // Note: move the sample code to the bottom of this // file before uncommenting it. // </code></pre> <p>It's not jQuery syntax, but should be quite easy to integrate in your application ;-)</p> <p><br> About Textile, it seems to be a bit harder to find anything useful :-(</p> <p><br> In the other side, HTML -> Markdown, I guess things might be a bit harder...</p> <p>What I would do is store both Markdown and HTML in my application data store (database ? ), and use one for editing, and the other for rendering... Would take more space, but it seems less risky than "decrypting" HTML...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload