nexmo_markdown_renderer 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexmo_markdown_renderer/filters/i18n/smartling/frontmatter_filter.rb +2 -2
- data/lib/nexmo_markdown_renderer/pipelines/smartling/download.rb +1 -2
- data/lib/version.rb +1 -1
- metadata +2 -3
- data/lib/nexmo_markdown_renderer/filters/i18n/smartling/code_block_filter.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd02562cf6db0de1c58951324ee7be71aeee914ea5bee6498ec12af45b78465e
|
4
|
+
data.tar.gz: 2a6ad3f742f90d3714c7a864d8f8a44060f6929ef824bb270251da45882b99b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b07ba6eebeb8023e0f541a8b99b4790935df5f45e79b691dc419c3f2f86019cdfa50212f0854d2eebec2a7a59d60f7739eb4c860994462b01943cc6be2834c
|
7
|
+
data.tar.gz: a6db2da85020d5661a24f1a33f7bd2217b2475e76d78c320b8eaadd87e066df6d5d3954d0a90d4a3bcf6e21087a1bc21714952a88c1bfa14f3f0cb93d3ab64be
|
@@ -1,10 +1,10 @@
|
|
1
|
-
module Nexmo
|
1
|
+
module Nexmo
|
2
2
|
module Markdown
|
3
3
|
module I18n
|
4
4
|
module Smartling
|
5
5
|
class FrontmatterFilter < Banzai::Filter
|
6
6
|
def call(input)
|
7
|
-
input.gsub(/\A\*\*\* \*\* \* \*\* \*\*\*\n*(
|
7
|
+
input.gsub(/\A\*\*\* \*\* \* \*\* \*\*\*\n*(.*?\n)!?(\*\*\* \*\* \* \*\* \*\*\*|----+)\n*/m) do |_frontmatter|
|
8
8
|
front = $1.gsub(/`products: (.*)`\n\n/) do |products|
|
9
9
|
"products: #{$1}\n\n"
|
10
10
|
end
|
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.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nexmo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: banzai
|
@@ -260,7 +260,6 @@ files:
|
|
260
260
|
- lib/nexmo_markdown_renderer/filters/frontmatter_filter.rb
|
261
261
|
- lib/nexmo_markdown_renderer/filters/heading_filter.rb
|
262
262
|
- lib/nexmo_markdown_renderer/filters/i18n/frontmatter_filter.rb
|
263
|
-
- lib/nexmo_markdown_renderer/filters/i18n/smartling/code_block_filter.rb
|
264
263
|
- lib/nexmo_markdown_renderer/filters/i18n/smartling/escape_filter.rb
|
265
264
|
- lib/nexmo_markdown_renderer/filters/i18n/smartling/frontmatter_filter.rb
|
266
265
|
- lib/nexmo_markdown_renderer/filters/icon_filter.rb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module Nexmo
|
2
|
-
module Markdown
|
3
|
-
module I18n
|
4
|
-
module Smartling
|
5
|
-
class CodeBlockFilter < Banzai::Filter
|
6
|
-
def call(input)
|
7
|
-
input.gsub(/\n\n\s{4}(.*?)\n\n/m) do
|
8
|
-
<<~CODE_BLOCK
|
9
|
-
|
10
|
-
````
|
11
|
-
#{$1.split(/\n\s{4}/).join("\n")}
|
12
|
-
````
|
13
|
-
CODE_BLOCK
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|