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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5ab5e26d1f127767fbdd118b32d712005de0287dfc974441a5d1a203919f77e
4
- data.tar.gz: 49bfca14dde71a6a1988f36d86b43a7959de741209ee2a18898dceef0edaa184
3
+ metadata.gz: 78f4d0367105a4f23cd2e43f0ca438d281d70125c2f0b4fa3c9106b0dc495b5f
4
+ data.tar.gz: 31b8c0cdf04f0725047394789dee5fda2339975fea6d37efdde106c960141a6a
5
5
  SHA512:
6
- metadata.gz: a4a085faddda45dc3e42d8747de1034a1669ba2fd97044bef41bbefcb9fc9e3e917b68f40cd9768ef649a201ce5237187e981f6b280f1971527e8e187e28f38c
7
- data.tar.gz: 70cc0a5a23274c612af8b029def4fb04935c05f8e4fd5e28e1167e8605a90264a10cb689ee6771f3a0c15f68efd4715db6549a0b8181e7ce3f0814cdbf509a64
6
+ metadata.gz: 04ef078ea873aa0664dfa6de6aebebe494ece41c2ad1a866003d5faba2c3ec1d514a148c8894f3bd38aade4d604618087a71fceefa69d499dee15f4b7ca8e50c
7
+ data.tar.gz: bc52192e70034a3f05f34e424e877f566837831bb639aa279093d248f87beca3f54e0ea92dd784df9d07ccdaacb9c57ec15e3e0a3c641bac91203e9c0370c5f5
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: ruby
6
6
  authors:
7
7
  - Brett Walker