Last active
August 29, 2015 14:11
-
-
Save tatesuke/8567beac86be2f856c5d to your computer and use it in GitHub Desktop.
Markdownを使うのに環境構築なんて不要!? ref: http://qiita.com/tatesuke/items/a724c6da7284d72a0b1d
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
<!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