Skip to content

Instantly share code, notes, and snippets.

@tatesuke
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatesuke/8567beac86be2f856c5d to your computer and use it in GitHub Desktop.
Save tatesuke/8567beac86be2f856c5d to your computer and use it in GitHub Desktop.
Markdownを使うのに環境構築なんて不要!? ref: http://qiita.com/tatesuke/items/a724c6da7284d72a0b1d
<!DOCTYPE html>
<meta charset="utf-8">
<title>Markdown with HTML5</title>
<div id="content">
# 見出し1
## 見出し2
### 見出し3
これは本文です。もちろん[リンク](http://www.google.com)だって使えます。
** 太字だって **
* 普通にリストも使えるよ
* すごいね
</div>
<div id="jscontent">
<script src="marked.min.js"></script>
<script>
var content = document.getElementById("content");
content.innerHTML = marked(content.innerHTML);
</script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment