commonmarker 2.5.0-aarch64-linux-musl → 2.6.0-aarch64-linux-musl

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: 72c6650e6cd1ba09004f0889b20ec71644a70f2cfa507da71f3d7fb8d39c57b8
4
- data.tar.gz: 2e6aa69fd87be2347659d6ffa5c6812d6401807630fc387b66756b08c0b8ba9a
3
+ metadata.gz: 663e4c95e92de37212f9af584f11a6f7351bab6428a890f888d532758ae1f519
4
+ data.tar.gz: 5c4d13a30a03222de5803c2fa50ca84151f0c4cdd9db7eef7632249c01161275
5
5
  SHA512:
6
- metadata.gz: 7db106e41a4ecde934b9b681f25092185176a5f66c254392b86be0516f1b85d628d5e06bd07646da1f174c41c36cb7a42a88f884e9b0ed4662b6fc19e4761593
7
- data.tar.gz: 1f3755815715c77c7ec3820ebf14ce7615c830c5c33cda40d634123dd015b0d005f8c4487a70ae4b0e99a95829d97b1233e08dc476df0269f8c3c11d21aaf5fc
6
+ metadata.gz: 043a09ab8b03b0e4375e1f5ff2336bbbbe04a09f57f5a68469a618e848a16f91df1f7e92648e8ec0d5a1a2d030e9fe5b4c6e74fe4332ce7952bd0cc68fada2f6
7
+ data.tar.gz: ec54443c465420c832777441aa036a2b5a6f94d2410a95bc2596a5e040b7d4a16db40d0dfa07ba550a24b9590b42f03d888bfd8f6d219bf7d30fac89467da725
data/README.md CHANGED
@@ -156,12 +156,13 @@ Note that there is a distinction in comrak for "parse" options and "render" opti
156
156
 
157
157
  ### Parse options
158
158
 
159
- | Name | Description | Default |
160
- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
161
- | `smart` | Punctuation (quotes, full-stops and hyphens) are converted into 'smart' punctuation. | `false` |
162
- | `default_info_string` | The default info string for fenced code blocks. | `""` |
163
- | `relaxed_tasklist_matching` | Enables relaxing of the tasklist extension matching, allowing any non-space to be used for the "checked" state instead of only `x` and `X`. | `false` |
164
- | `relaxed_autolinks` | Enable relaxing of the autolink extension parsing, allowing links to be recognized when in brackets, as well as permitting any url scheme. | `false` |
159
+ | Name | Description | Default |
160
+ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
161
+ | `smart` | Punctuation (quotes, full-stops and hyphens) are converted into 'smart' punctuation. | `false` |
162
+ | `default_info_string` | The default info string for fenced code blocks. | `""` |
163
+ | `relaxed_tasklist_matching` | Enables relaxing of the tasklist extension matching, allowing any non-space to be used for the "checked" state instead of only `x` and `X`. | `false` |
164
+ | `relaxed_autolinks` | Enable relaxing of the autolink extension parsing, allowing links to be recognized when in brackets, as well as permitting any url scheme. | `false` |
165
+ | `leave_footnote_definitions` | Allow footnote definitions to remain in their original positions instead of being moved to the document's end (only affects AST) | `false` |
165
166
 
166
167
  ### Render options
167
168
 
@@ -213,9 +214,11 @@ Commonmarker.to_html('"Hi *there*"', options: {
213
214
  | `underline` | Enables the underline extension. | `false` |
214
215
  | `spoiler` | Enables the spoiler extension. | `false` |
215
216
  | `greentext` | Enables the greentext extension. | `false` |
217
+ | `subtext` | Enables the subtext extension. | `false` |
216
218
  | `subscript` | Enables the subscript extension. | `false` |
217
219
  | `alerts` | Enables the alerts extension. | `false` |
218
220
  | `cjk_friendly_emphasis` | Enables the [CJK friendly emphasis](https://github.com/tats-u/markdown-cjk-friendly) extension. | `false` |
221
+ | `highlight` | Enables highlighting via `==` | `false` |
219
222
 
220
223
  For more information on these options, see [the comrak documentation](https://github.com/kivikakk/comrak#usage).
221
224
 
Binary file
Binary file
Binary file
@@ -10,6 +10,7 @@ module Commonmarker
10
10
  default_info_string: "",
11
11
  relaxed_tasklist_matching: false,
12
12
  relaxed_autolinks: false,
13
+ leave_footnote_definitions: false,
13
14
  }.freeze,
14
15
  render: {
15
16
  hardbreaks: true,
@@ -48,8 +49,10 @@ module Commonmarker
48
49
  spoiler: false,
49
50
  greentext: false,
50
51
  subscript: false,
52
+ subtext: false,
51
53
  alerts: false,
52
54
  cjk_friendly_emphasis: false,
55
+ highlight: false,
53
56
  }.freeze,
54
57
  format: [:html].freeze,
55
58
  }.freeze
@@ -44,7 +44,7 @@ module Commonmarker
44
44
  opts = Config.process_options(options)
45
45
  plugins = Config.process_plugins(plugins)
46
46
 
47
- node_to_html(options: opts, plugins: plugins).force_encoding("utf-8")
47
+ node_to_html(render: opts[:render], parse: opts[:parse], extension: opts[:extension], plugins: plugins).force_encoding("utf-8")
48
48
  end
49
49
 
50
50
  # Public: Convert the node to a CommonMark string.
@@ -59,7 +59,7 @@ module Commonmarker
59
59
  opts = Config.process_options(options)
60
60
  plugins = Config.process_plugins(plugins)
61
61
 
62
- node_to_commonmark(options: opts, plugins: plugins).force_encoding("utf-8")
62
+ node_to_commonmark(render: opts[:render], parse: opts[:parse], extension: opts[:extension], plugins: plugins).force_encoding("utf-8")
63
63
  end
64
64
  end
65
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmarker
4
- VERSION = "2.5.0"
4
+ VERSION = "2.6.0"
5
5
  end
data/lib/commonmarker.rb CHANGED
@@ -23,7 +23,7 @@ module Commonmarker
23
23
 
24
24
  opts = Config.process_options(options)
25
25
 
26
- commonmark_parse(text, options: opts)
26
+ commonmark_parse(text, parse: opts.fetch(:parse, {}), render: opts.fetch(:render, {}), extension: opts.fetch(:extension, {}))
27
27
  end
28
28
 
29
29
  # Public: Parses a CommonMark string into an HTML string.
@@ -41,7 +41,7 @@ module Commonmarker
41
41
  opts = Config.process_options(options)
42
42
  plugins = Config.process_plugins(plugins)
43
43
 
44
- commonmark_to_html(text, options: opts, plugins: plugins)
44
+ commonmark_to_html(text, parse: opts.fetch(:parse, {}), render: opts.fetch(:render, {}), extension: opts.fetch(:extension, {}), plugins: plugins)
45
45
  end
46
46
  end
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmarker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: aarch64-linux-musl
6
6
  authors:
7
7
  - Garen Torikian
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-10-14 00:00:00.000000000 Z
12
+ date: 2025-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -83,7 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
83
  version: 3.5.dev
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '3.4'
89
89
  - - ">="