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 +4 -4
- data/README.md +9 -6
- data/lib/commonmarker/3.2/commonmarker.so +0 -0
- data/lib/commonmarker/3.3/commonmarker.so +0 -0
- data/lib/commonmarker/3.4/commonmarker.so +0 -0
- data/lib/commonmarker/config.rb +3 -0
- data/lib/commonmarker/node.rb +2 -2
- data/lib/commonmarker/version.rb +1 -1
- data/lib/commonmarker.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 663e4c95e92de37212f9af584f11a6f7351bab6428a890f888d532758ae1f519
|
|
4
|
+
data.tar.gz: 5c4d13a30a03222de5803c2fa50ca84151f0c4cdd9db7eef7632249c01161275
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
160
|
-
|
|
|
161
|
-
| `smart`
|
|
162
|
-
| `default_info_string`
|
|
163
|
-
| `relaxed_tasklist_matching`
|
|
164
|
-
| `relaxed_autolinks`
|
|
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
|
data/lib/commonmarker/config.rb
CHANGED
|
@@ -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
|
data/lib/commonmarker/node.rb
CHANGED
|
@@ -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(
|
|
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(
|
|
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
|
data/lib/commonmarker/version.rb
CHANGED
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,
|
|
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,
|
|
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.
|
|
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-
|
|
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
|
- - ">="
|