gitlab-glfm-markdown 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Cargo.lock +1 -1
- data/ext/glfm_markdown/Cargo.toml +1 -1
- data/lib/glfm_markdown/version.rb +1 -1
- data/lib/glfm_markdown.rb +2 -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: 78f4d0367105a4f23cd2e43f0ca438d281d70125c2f0b4fa3c9106b0dc495b5f
|
4
|
+
data.tar.gz: 31b8c0cdf04f0725047394789dee5fda2339975fea6d37efdde106c960141a6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04ef078ea873aa0664dfa6de6aebebe494ece41c2ad1a866003d5faba2c3ec1d514a148c8894f3bd38aade4d604618087a71fceefa69d499dee15f4b7ca8e50c
|
7
|
+
data.tar.gz: bc52192e70034a3f05f34e424e877f566837831bb639aa279093d248f87beca3f54e0ea92dd784df9d07ccdaacb9c57ec15e3e0a3c641bac91203e9c0370c5f5
|
data/Cargo.lock
CHANGED
data/lib/glfm_markdown.rb
CHANGED
@@ -37,8 +37,9 @@ module GLFMMarkdown
|
|
37
37
|
raise TypeError, 'options must be a Hash' unless options.is_a?(Hash)
|
38
38
|
|
39
39
|
default_options = options[:glfm] ? GLFM_DEFAULT_OPTIONS : {}
|
40
|
+
|
41
|
+
# if you need to modify `options`, use `.merge` as `options` could be frozen
|
40
42
|
options = options.merge(unsafe: true) if options[:tagfilter]
|
41
|
-
options[:experimental_inline_sourcepos] = options[:sourcepos] if options[:sourcepos]
|
42
43
|
|
43
44
|
render_to_html_rs(markdown, default_options.merge(options))
|
44
45
|
end
|