nexmo_markdown_renderer 0.8.0 → 0.9.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: c5f7ec6e1a0aa5cd9d02e330977fdf11cd56e30b655f9be0d358efa630a4b509
|
4
|
+
data.tar.gz: c262fead10478978a755062747b2feb30514030b4c549d0ddacce0ebb0d3deb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc5bb2b5eb7c29a11eb2cb293ac1a048bb5dbf8c3bc33e6161a034ecd394ee065ebfe4e5b144eaffb14faa166851fc79108e3e65d2ae4bf4a6c0b1ff80cb00c1
|
7
|
+
data.tar.gz: f5563a7ad92e6e46a31792bf57644cac31118d7b9ae3d0edcd7b20515dd7f3b95acd44a3d93716facbfbafd4f456210221b87bc5bcc3dda95960347f2a561424
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexmo_markdown_renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nexmo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: banzai
|
@@ -275,7 +275,6 @@ files:
|
|
275
275
|
- lib/nexmo_markdown_renderer/filters/partial_filter.rb
|
276
276
|
- lib/nexmo_markdown_renderer/filters/php_inliner_filter.rb
|
277
277
|
- lib/nexmo_markdown_renderer/filters/relative_link_filter.rb
|
278
|
-
- lib/nexmo_markdown_renderer/filters/screenshot_filter.rb
|
279
278
|
- lib/nexmo_markdown_renderer/filters/snippet_variables_filter.rb
|
280
279
|
- lib/nexmo_markdown_renderer/filters/tab_filter.rb
|
281
280
|
- lib/nexmo_markdown_renderer/filters/techio_filter.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
module Nexmo
|
2
|
-
module Markdown
|
3
|
-
class ScreenshotFilter < Banzai::Filter
|
4
|
-
def call(input)
|
5
|
-
input.gsub(/```screenshot(.+?)```/m) do |_s|
|
6
|
-
config = YAML.safe_load($1)
|
7
|
-
if config['image'] && File.file?("#{Nexmo::Markdown::Config.docs_base_path}/#{config['image']}")
|
8
|
-
"![Screenshot](#{config['image'].gsub('public', '')})"
|
9
|
-
else
|
10
|
-
<<~HEREDOC
|
11
|
-
## Missing image
|
12
|
-
To fix this run:
|
13
|
-
```
|
14
|
-
$ rake screenshots:update
|
15
|
-
```
|
16
|
-
HEREDOC
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|