vivlio_pack 0.2.1 → 0.2.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/lib/vivlio_pack/generator.rb +1 -0
- data/lib/vivlio_pack/renderer.rb +3 -3
- data/lib/vivlio_pack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41e213a9546b22330f9c4b0be322133ef7e59d03c17664b1bb5d921368295727
|
|
4
|
+
data.tar.gz: 37ccc0b2f3e97c615a59e4e1562722d2b245c99c5f9042ba7cef1f82c8b5c579
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a7e30b5e411a91b3e7210ac91be17837bfd6494fdbb770e6f5a1e4ec98d071a5ebfe7eb2fd139149272d39e3cc3cd4a4aa4950717abd4107ce1ee9cedd5afb0
|
|
7
|
+
data.tar.gz: 8adba412a9bc21e51d05f6b0816cfcecbff4ea485a5aaa3957c110a5a18ca16c745d6cc05905a99dcd6301de379bbc8921cf27cea187047506af0dc504f16457
|
|
@@ -25,6 +25,7 @@ module VivlioPack
|
|
|
25
25
|
<meta charset="utf-8">
|
|
26
26
|
<link rel="stylesheet" type="text/css" href="contents/css/style.css">
|
|
27
27
|
<link rel="stylesheet" type="text/css" href="contents/css/bw.css">
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="contents/css/custom.css">
|
|
28
29
|
<link href="https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c" rel="stylesheet">
|
|
29
30
|
</head>
|
|
30
31
|
<body>
|
data/lib/vivlio_pack/renderer.rb
CHANGED
|
@@ -56,15 +56,15 @@ module VivlioPack
|
|
|
56
56
|
return "<div class='page-break'></div>\n"
|
|
57
57
|
when /\A%([a-z][a-z0-9\-]*):(.*)/m
|
|
58
58
|
return "<div class='#{$1}'>#{$2}</div>\n"
|
|
59
|
-
when /\A\[begin
|
|
59
|
+
when /\A\[begin\s+(\w+)(\s+(.+))?\]\z/
|
|
60
60
|
plugin_name = $~[1]
|
|
61
61
|
plugin = Renderer.plugin(plugin_name)
|
|
62
62
|
if plugin
|
|
63
63
|
@state.push plugin_name
|
|
64
|
-
result = plugin.process_begin
|
|
64
|
+
result = plugin.process_begin($~[3])
|
|
65
65
|
return result if result
|
|
66
66
|
end
|
|
67
|
-
when /\A\[end
|
|
67
|
+
when /\A\[end\s+(\w+)\]\z/
|
|
68
68
|
plugin_name = $~[1]
|
|
69
69
|
plugin = Renderer.plugin(plugin_name)
|
|
70
70
|
if plugin
|
data/lib/vivlio_pack/version.rb
CHANGED