mdpress 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/mdpress +1 -1
  2. data/lib/impress_renderer.rb +1 -1
  3. metadata +4 -4
data/bin/mdpress CHANGED
@@ -54,7 +54,7 @@ def render
54
54
  ImpressRenderer.set_head("")
55
55
  end
56
56
 
57
- m = Markdown.new(ImpressRenderer, :autolink => true)
57
+ m = Markdown.new(ImpressRenderer, :autolink => true, :fenced_code_blocks => true, :tables => true)
58
58
  log "rendering presentation"
59
59
  f = File.open(DIRNAME + "/index.html", "w+")
60
60
  f.write(m.render(text))
@@ -22,7 +22,7 @@ class ImpressRenderer < Redcarpet::Render::HTML
22
22
  end
23
23
 
24
24
  def block_code code, lang
25
- "<pre><code class='prettyprint'>#{code}</code></pre>"
25
+ "<pre><code class='prettyprint #{lang}'>#{code}</code></pre>"
26
26
  end
27
27
 
28
28
  def codespan code
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdpress
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aditya Bhargava
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-05 00:00:00 -08:00
18
+ date: 2012-04-29 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency