markdown_presenter 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 004b3ff802e7e64f9d3225d72dfc889d160b5a6c
4
- data.tar.gz: 5e28db5ca85fb5b2408e37a6c408ae469d4cc367
3
+ metadata.gz: 5016a246cba363a4ee7adb95437c3a5c017b13ce
4
+ data.tar.gz: d7acce76c67f532a5a8346c48b425d20f5339fc6
5
5
  SHA512:
6
- metadata.gz: e0441f2d0b29b822d44546a1d97078feba8d0aee752218de27fc61e4ce988ee7d827919ae6cc5ba60446c4d2d5d4462d3793a32898efead753267c67d5dbe4f7
7
- data.tar.gz: ea745e2f751b498dbe038ec03250f89a37f9af15433685e4d0f5ea045e1034a39f654c26227d33d9fadfb76fb09bd5be5bb3ea2260bc34e4f233662d6cda387f
6
+ metadata.gz: 916ff15e3e4a0fc1e1f29e7015fd2f6984c4570199f62a41817f8bf20a7391239078d13fe29535360ab191b2b5a0c459b6ea96a69bd3a0c4d1bbd35719d06cda
7
+ data.tar.gz: c9cbe2a36d9b428092ed2cbff773e7b9b60deb776d2769fa3928052ff10f99942c63c1c826460edd07f7469e5ff54912b670a5f174bff1522021525f4ff6c724
@@ -19,7 +19,7 @@ module MarkdownPresenter
19
19
 
20
20
  def self.content_of filename
21
21
  if filename.end_with? ".md"
22
- document = Kramdown::Document.new(File.read(filename), parse_block_html: true, parse_span_html: true)
22
+ document = Kramdown::Document.new(File.read(filename), parse_block_html: true, parse_span_html: true, coderay_line_numbers:nil)
23
23
  document.to_html
24
24
 
25
25
  elsif filename.end_with? ".html"
@@ -64,5 +64,5 @@ end
64
64
  if __FILE__ == $0
65
65
  ($stderr.puts "Specify a filename in argument."; exit 1) if ARGV.empty?
66
66
 
67
- MarkdownPresenter::process ARGV[0]
67
+ MarkdownPresenter::process ARGV[0]
68
68
  end
data/presenter.html.haml CHANGED
@@ -3,6 +3,8 @@
3
3
  %head
4
4
  %title= title
5
5
  %meta{name:"viewport", content:"width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1"}
6
+ %meta{name:"charset", content:"utf-8"}
7
+ %meta{"http-equiv":"content-type", content:"text/html; charset=utf-8"}
6
8
  %script{type:'text/javascript'}= yield 'js/jquery-1.10.2.min.js'
7
9
  %style= yield 'css/uikit.almost-flat.min.css'
8
10
  %script{type:'text/javascript'}= yield 'js/uikit.min.js'
@@ -22,7 +24,7 @@
22
24
  code {font-size: 16px;}
23
25
  h1 {margin-bottom:25px; font-family: 'Luckiest Guy', Ubuntu;}
24
26
  h1 {border-bottom:1px dotted green;}
25
- h2 {margin-top:75px; background-color: #ddd; padding:1px 5px;}
27
+ h2 {margin-top:75px; background-color: #eee; border-bottom:1px dotted #888; padding:1px 5px;}
26
28
  h2, h3, h4, h5, h6 {font-family: Ubuntu, Verdana;}
27
29
 
28
30
  %body
@@ -97,7 +99,7 @@
97
99
  var hammertime = Hammer(document.body, {swipe_velocity: 0.3, drag: false});
98
100
  hammertime.on("swipeleft", next);
99
101
  hammertime.on("swiperight", previous);
100
-
102
+
101
103
  show(parseCurrentSlideIndex());
102
104
 
103
105
  P = {previous:previous, next:next};
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Tanguay-Carel
@@ -14,56 +14,56 @@ dependencies:
14
14
  name: haml
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: kramdown
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mime-types
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Transforms a markdown file into an HTML presentation
@@ -73,14 +73,14 @@ executables:
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - lib/markdown_presenter.rb
76
+ - bin/markdown_presenter
77
77
  - css/uikit.almost-flat.min.css
78
- - js/uikit.min.js
79
78
  - js/hammer.min.js
80
79
  - js/jquery-1.10.2.min.js
80
+ - js/uikit.min.js
81
+ - lib/markdown_presenter.rb
81
82
  - presenter.html.haml
82
83
  - test/markdown_presenter_test.rb
83
- - bin/markdown_presenter
84
84
  homepage: https://github.com/matstc/markdown_presenter
85
85
  licenses:
86
86
  - CC BY-NC 4.0
@@ -91,20 +91,19 @@ require_paths:
91
91
  - lib
92
92
  required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.1.11
104
+ rubygems_version: 2.4.8
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Transforms a markdown file into an HTML presentation
108
108
  test_files:
109
109
  - test/markdown_presenter_test.rb
110
- has_rdoc: