0
0
Fork 0

add markdown support

This is to pretty print the markdown posts.
This commit is contained in:
Gibheer 2013-10-26 22:36:17 +02:00
parent 4e04cce391
commit fb3d0b51c0
4 changed files with 7 additions and 1 deletions

View File

@ -5,5 +5,6 @@ gem 'do_postgres'
gem 'zero', :git => 'https://github.com/libzero/zero.git'
gem 'slim'
gem 'sass'
gem 'kramdown'
gem 'puma'
gem 'rubysl', :platforms => :rbx

View File

@ -14,6 +14,7 @@ GEM
do_postgres (0.10.13)
data_objects (= 0.10.13)
ffi2-generators (0.1.1)
kramdown (1.2.0)
minitest (4.7.5)
puma (2.6.0)
rack (>= 1.1, < 2.0)
@ -241,6 +242,7 @@ PLATFORMS
DEPENDENCIES
do_postgres
kramdown
puma
rubysl
sass

View File

@ -4,3 +4,4 @@ require 'sequel'
require 'zero'
require 'sass'
require 'slim'
require 'kramdown'

View File

@ -16,4 +16,6 @@ html
.author=post[:username]
.date= post[:written].strftime('%Y-%m-%d')
.time= post[:written].strftime('%H-%M')
section= post[:content]
section
markdown:
"#{post[:content]}"