md2key 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +41 -0
- data/lib/md2key/highlight.rb +1 -1
- data/lib/md2key/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93b8db8bf9a4b9c14dc17ab8f03f01e6cc3ede5f
|
|
4
|
+
data.tar.gz: d0ae7ef7ac606961a908f6c1d2828c74bdedff21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f183fa1085e319fa42f57f3964a8a9a89308552b49b19466a6868c8628cbcc4fef917de9c9ecca29a095ef672c5598dd54c2f470dd824f48be1a3ffb9cc92428
|
|
7
|
+
data.tar.gz: e9585e7c822a97405d6c90d6958cbfaba24c3e1ef9ee63170308d4f212cd61807401e1d47edc0476081d9e535461f73c883077cb9b403dce162a77b7b81ea64c
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -17,6 +17,8 @@ gem install md2key
|
|
|
17
17
|
|
|
18
18
|

|
|
19
19
|
|
|
20
|
+
## Features
|
|
21
|
+
|
|
20
22
|
### Basic example
|
|
21
23
|
|
|
22
24
|
The slides in the movie can be generated with following markdown.
|
|
@@ -29,6 +31,7 @@ You can separate slides with `---` just for readability.
|
|
|
29
31
|
## Hello world
|
|
30
32
|
- I'm takashi kokubun
|
|
31
33
|
- This is a pen
|
|
34
|
+
- Nested item is available
|
|
32
35
|
|
|
33
36
|
## How are you?
|
|
34
37
|
- I'm fine thank you
|
|
@@ -64,6 +67,36 @@ end
|
|
|
64
67
|
```
|
|
65
68
|
</pre>
|
|
66
69
|
|
|
70
|
+
### Insert table
|
|
71
|
+
```markdown
|
|
72
|
+
## table
|
|
73
|
+
|
|
74
|
+
| a | b | c |
|
|
75
|
+
|:--|:--|:--|
|
|
76
|
+
| 1 | 2 | 3 |
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
<img src='https://cloud.githubusercontent.com/assets/2607541/17286996/8dd4fdec-57ff-11e6-8766-cf35eacd363e.png' width='60%'>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Insert flowchart & sequence diagram
|
|
83
|
+
<pre>
|
|
84
|
+
## flowchart & sequence diagram slide
|
|
85
|
+
|
|
86
|
+
```mermaid
|
|
87
|
+
sequenceDiagram
|
|
88
|
+
Alice->Bob: Hello Bob, how are you?
|
|
89
|
+
Note right of Bob: Bob thinks
|
|
90
|
+
Bob-->Alice: I am good thanks!
|
|
91
|
+
Bob-->John the Long: How about you John?
|
|
92
|
+
Bob-->Alice: Checking with John...
|
|
93
|
+
Alice->John the Long: Yes... John, how are you?
|
|
94
|
+
John the Long-->Alice: Better then you!
|
|
95
|
+
```
|
|
96
|
+
</pre>
|
|
97
|
+
|
|
98
|
+
<img src='https://cloud.githubusercontent.com/assets/25447/20176322/5433159e-a758-11e6-8afb-e857a3e5dd0c.png' width='60%'>
|
|
99
|
+
|
|
67
100
|
### Insert presenter note
|
|
68
101
|
|
|
69
102
|
```markdown
|
|
@@ -74,6 +107,14 @@ end
|
|
|
74
107
|
^ Remember, what would Freddie Mercury do? Yes, I'm Freddie! We are the champions!!
|
|
75
108
|
```
|
|
76
109
|
|
|
110
|
+
## Experimental Features
|
|
111
|
+
|
|
112
|
+
### Configure master slide by header level
|
|
113
|
+
|
|
114
|
+
You can change master slide by header level if you have `.md2key`.
|
|
115
|
+
|
|
116
|
+
See [#32](https://github.com/k0kubun/md2key/pull/32) for details.
|
|
117
|
+
|
|
77
118
|
## License
|
|
78
119
|
|
|
79
120
|
MIT License
|
data/lib/md2key/highlight.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Md2key
|
|
|
7
7
|
|
|
8
8
|
extension = code.extension || DEFAULT_EXTENSION
|
|
9
9
|
|
|
10
|
-
IO.popen("highlight -O rtf -K 28 -s rdark -k Monaco -S #{extension} | pbcopy", 'w+') do |highlight|
|
|
10
|
+
IO.popen("highlight -O rtf -K 28 -s rdark -k Monaco -S #{extension} -u utf-8 | pbcopy", 'w+') do |highlight|
|
|
11
11
|
highlight.write(code.source)
|
|
12
12
|
highlight.close
|
|
13
13
|
end
|
data/lib/md2key/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: md2key
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takashi Kokubun
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
166
166
|
version: '0'
|
|
167
167
|
requirements: []
|
|
168
168
|
rubyforge_project:
|
|
169
|
-
rubygems_version: 2.5.
|
|
169
|
+
rubygems_version: 2.5.2
|
|
170
170
|
signing_key:
|
|
171
171
|
specification_version: 4
|
|
172
172
|
summary: Convert markdown to keynote
|