Skip to content

Instantly share code, notes, and snippets.

@moyhig
Created November 1, 2012 09:01
Show Gist options
  • Save moyhig/3992583 to your computer and use it in GitHub Desktop.
Save moyhig/3992583 to your computer and use it in GitHub Desktop.
2012/11/01
<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>
@moyhig
Copy link
Author

moyhig commented Nov 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment