revealing 1.4.0 → 1.5.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81fadf115300f171aa5b6ea5071c9584118385f1ed0f02da4ed8b8e0203fab9d
|
4
|
+
data.tar.gz: ad941a12716d1ec2482d3b343117d8f16429a5066a69039236ed317a31d978f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 916258822e1363db167842ea21f301338214453c30a2951a4d7c71131bfc8119067d4d1e92fffc9d3c38c1212fec142888dc913ef4491e1f67b793c02b955e1d
|
7
|
+
data.tar.gz: e66136a9f4a4e0007236c4e78b22a873a3876561ce72908cb37517ea2aed1240652f94de8767354eb6f6bcf535ed9f826f59a3d75b6aef5ef71f8e4347821c3d
|
data/README.markdown
CHANGED
@@ -38,9 +38,9 @@ Unique features:
|
|
38
38
|
# TODO
|
39
39
|
|
40
40
|
1. Expose DITAA's `--scale` via attribute
|
41
|
-
1.
|
42
|
-
1. pandoc-ditaa-inline filter should write files to cache dir and read it from there via SHA
|
41
|
+
1. pandoc-ditaa-inline filter could write files to cache dir and read it from there via SHA
|
43
42
|
- still keep the SVG inline, but do not call ditaa again if unchanged
|
43
|
+
1. Make pandoc-ditaa-inline only inline SVG if FORMAT is html (html5?)
|
44
44
|
1. Expose customization of
|
45
45
|
* highlight-style
|
46
46
|
* theme
|
data/lib/revealing/cli.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative 'prerequisite'
|
|
5
5
|
module Revealing
|
6
6
|
PREREQUISITES = [
|
7
7
|
Prerequisite.new('curl'),
|
8
|
-
Prerequisite.new('
|
8
|
+
Prerequisite.new('java'),
|
9
9
|
Prerequisite.new('gm', 'graphicsmagick'),
|
10
10
|
Prerequisite.new('gpp'),
|
11
11
|
Prerequisite.new('pandoc'),
|
@@ -72,7 +72,7 @@ module Revealing
|
|
72
72
|
TEMPLATES_DIR = Pathname(__dir__) / '../../templates'
|
73
73
|
|
74
74
|
def template_files
|
75
|
-
TEMPLATES_DIR.glob(
|
75
|
+
TEMPLATES_DIR.glob("**/*", File::FNM_DOTMATCH).select(&:file?)
|
76
76
|
end
|
77
77
|
|
78
78
|
def target_files_in(dir)
|
data/lib/revealing/version.rb
CHANGED
@@ -1,6 +1,26 @@
|
|
1
|
+
-- https://github.com/Donearm/scripts/blob/master/lib/dirname.lua
|
2
|
+
local function dirname(str)
|
3
|
+
if str:match(".-/.-") then
|
4
|
+
return string.gsub(str, "(.*/)(.*)", "%1")
|
5
|
+
else
|
6
|
+
return ''
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
1
10
|
function CodeBlock(block)
|
2
11
|
if block.classes[1] == "ditaa" then
|
3
|
-
local img = pandoc.pipe(
|
12
|
+
local img = pandoc.pipe(
|
13
|
+
"java",
|
14
|
+
{
|
15
|
+
"-Djava.awt.headless=true",
|
16
|
+
"-jar", dirname(PANDOC_SCRIPT_FILE) .. '/' .. "lib/ditaa-0.11.0-standalone.jar",
|
17
|
+
"-",
|
18
|
+
"-",
|
19
|
+
"--svg",
|
20
|
+
"--scale", "1.0"
|
21
|
+
},
|
22
|
+
block.text
|
23
|
+
)
|
4
24
|
return pandoc.Para({pandoc.RawInline("html", img)})
|
5
25
|
end
|
6
26
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: revealing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steffen Uhlig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -222,6 +222,7 @@ files:
|
|
222
222
|
- lib/revealing/tasks/reveal.js.rake
|
223
223
|
- lib/revealing/version.rb
|
224
224
|
- revealing.gemspec
|
225
|
+
- templates/.gitignore
|
225
226
|
- templates/Gemfile
|
226
227
|
- templates/README.markdown
|
227
228
|
- templates/Rakefile
|
@@ -234,6 +235,7 @@ files:
|
|
234
235
|
- tools/pandoc-ditaa-inline/examples/example.html
|
235
236
|
- tools/pandoc-ditaa-inline/examples/example.markdown
|
236
237
|
- tools/pandoc-ditaa-inline/examples/example.png
|
238
|
+
- tools/pandoc-ditaa-inline/lib/ditaa-0.11.0-standalone.jar
|
237
239
|
homepage:
|
238
240
|
licenses:
|
239
241
|
- MIT
|