Last active
January 12, 2016 15:02
-
-
Save vvakame/86bfa843dab4e9ec8aff to your computer and use it in GitHub Desktop.
html5expertにサイトに投稿する時の独自フォーマットめんどいので頑張らなくても変換できるようにした
This file contains hidden or 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
| # encoding: utf-8 | |
| module ReVIEW | |
| class MARKDOWNBuilder | |
| def emlist(lines, caption = nil, lang = nil) | |
| print %Q[<pre class="lang:default decode:true" title="#{caption}">] | |
| lines.each do |line| | |
| puts detab(line) | |
| end | |
| puts "</pre>" | |
| blank | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment