gitlab-glfm-markdown 0.0.18-x86_64-darwin → 0.0.19-x86_64-darwin

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: 0676cc1c094af597892229bee902ec4b607e436c81a3a4b13be2a41d18c88f5f
4
- data.tar.gz: 624c27ef4bb1dfc28025dd75f22cf344fdc3d577cc2f8ade8099b21d7c7ffb23
3
+ metadata.gz: c41dedb3478d8ca20a9e318c72cb30cc6fa73f647e6eccc5f78607c40252206f
4
+ data.tar.gz: 9dcc2da8bdccf892b859afc50515221cc0d8a645edf5014c5eef9916f8682fa0
5
5
  SHA512:
6
- metadata.gz: f0c11227bec853b9af18cd151c2aa580924fe37625727197097d16f0215766535613d6de0cb3b621f891ba49d87eb93c2adc5cdaeccfb3da4096358fef43fe69
7
- data.tar.gz: cc0b12ab4cb794fdb3525178ec3968666e2a5ea061aa7802498b039f14d8209a5882150748d8fea3ebedf9189fde8369a73bb0f16182fc7cd061c830d38dec65
6
+ metadata.gz: fc0690f3eabc3e4a57590cb1cd4e07cd991c5344c6b550a0d83a00b61f76aeb14c2e51cad11de1cafd6640f74d21e7d2cfc55b7a9ecf6331c9cdb35593ae0713
7
+ data.tar.gz: d0a3f2adf7e13af6514c63df7409eae00c515d2c60a8117093630a63d1f7809b46c3cc65b408e2bb80f803e0f0973a6ba7b868fca2d16f2ee9d2f90afb380d15
data/Cargo.lock CHANGED
@@ -386,7 +386,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
386
386
 
387
387
  [[package]]
388
388
  name = "glfm_markdown"
389
- version = "0.0.18"
389
+ version = "0.0.19"
390
390
  dependencies = [
391
391
  "clap",
392
392
  "comrak",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "glfm_markdown"
3
- version = "0.0.18"
3
+ version = "0.0.19"
4
4
  edition = "2021"
5
5
  authors = ["digitalmoksha <bwalker@gitlab.com>"]
6
6
  description = "GitLab Flavored Markdown parser and formatter. 100% CommonMark-compatible. Experimental."
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GLFMMarkdown
4
- VERSION = '0.0.18'
4
+ VERSION = '0.0.19'
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-glfm-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Brett Walker