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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8434a1fb3fba2fdbcde8c79a3d53b21e3e2c74e8d21e0469fc53448815d253e1
4
- data.tar.gz: 5190706f0ccf45b1e696f5ab070617f14f9792550274cb6bfb31ffe9a8a2711b
3
+ metadata.gz: e50a049e32df599abb90b1f8bd59d1cb5a6e42e8d41b45b29e7e418e4133de15
4
+ data.tar.gz: 70da12f7865f6a0177fd19d06685ccec45cd9f1a1e135085c05b51ea65aad7f3
5
5
  SHA512:
6
- metadata.gz: 85c700cd6077b1206763b26d16b6486230dd36bf326cbff0a2c5f2f6e04a98a8ca6c8f2fbcf18e54f4e52c6908f6af9ff638bc279fd471bd420278f16cd64adf
7
- data.tar.gz: 7504685a86139c76c9317c3499b227e020452275409dabfebf1c912eb98b69ba42eaa445f0c8cd16c0743af1ee48b640067c10880fd5fe86aecde2ff4113faa2
6
+ metadata.gz: f977354e412c09854d7b1fcbd17db68f93a2bb95c6b513613c992926aab73a0c0fc298ff9434b18645f93c55ebdda4a14c54dfbdcf1c6806321b2b3a1497a08e
7
+ data.tar.gz: e76a311bd15ddb758da618611c9516e6edb12b8cec635d9f028d224c628ebde5ee65cea6b6943d689a5a7f364686bb07ed31243b8f610b609785c8ae629420c9
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: arm64-darwin
6
6
  authors:
7
7
  - Brett Walker