Created
November 1, 2012 09:01
-
-
Save moyhig/3992583 to your computer and use it in GitHub Desktop.
2012/11/01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.gist-meta { | |
display: none !important; | |
visibility: hidden !important; | |
} | |
</style> | |
<link rel="stylesheet" href="https://gist.github.com/stylesheets/gist/embed.css" /> | |
<div class="gist gist-syntax"> | |
<script runat="server" type="text/javascript"> | |
var url = "https://raw.github.com/gist/3985489/test.md"; | |
var text = Jaxer.Web.get(url, { as: 'text' }); | |
var data = { text: text, mode: "gfm" }; | |
var html = Jaxer.Web.post("https://api.github.com/markdown", JSON.encode(data)); | |
// var html = Jaxer.Web.post("https://api.github.com/markdown/raw", text, { contentType: 'text/plain'}); | |
document.write(html); | |
</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://higashida.net/manabu/TAOSW/2012/11/000017.html