commonmarker 2.7.0-x64-mingw-ucrt → 2.8.0-x64-mingw-ucrt
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 +6 -3
- 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/4.0/commonmarker.so +0 -0
- data/lib/commonmarker/config.rb +3 -0
- data/lib/commonmarker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d023eb9629b8545c7873745dd3344f1017db8df1a5afb47b3931013a535084b4
|
|
4
|
+
data.tar.gz: 0ac6959819b7726759d59aec5ee7c02b4a689c8c6fa4008a8bc39b57ac154797
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12dff2ad22bb2a5368974dea91e2487e0d1b5006d421003f513fde668be61e88e569d4fe0cd2b0d7811a31a9727add90bfffbbaa90871954db983333aa6be279
|
|
7
|
+
data.tar.gz: a99b329cd9566c37e942d776cab317481431019e6bb3099770d5867b08fa798d49580b47b867e3590ba4173ccdffc7d5b43a8ddb6f55129d71802b8c453fcad5
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Ruby wrapper for Rust's [comrak](https://github.com/kivikakk/comrak) crate.
|
|
|
5
5
|
It passes all of the CommonMark test suite, and is therefore spec-complete. It also includes extensions to the CommonMark spec as documented in the [GitHub Flavored Markdown spec](http://github.github.com/gfm/), such as support for tables, strikethroughs, and autolinking.
|
|
6
6
|
|
|
7
7
|
> [!NOTE]
|
|
8
|
-
> By default,
|
|
8
|
+
> By default, the following extensions are enabled for end user convenience: `strikethrough`, `tagfilter`, `table`, `autolink`, `tasklist` (all from the [GFM spec](http://github.github.com/gfm/)), and `shortcodes`. The `syntax_highlighter` plugin is also enabled by default, using the `"base16-ocean.dark"` theme.
|
|
9
9
|
>
|
|
10
10
|
> For more information on the available options and extensions, see [the documentation below](#options-and-plugins).
|
|
11
11
|
|
|
@@ -164,6 +164,7 @@ Note that there is a distinction in comrak for "parse" options and "render" opti
|
|
|
164
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
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` |
|
|
166
166
|
| `ignore_setext` | Ignores setext-style headings. | `false` |
|
|
167
|
+
| `sourcepos_chars` | Use character-based column tracking in source positions instead of byte-based. Relevant for multi-byte UTF-8 documents with `sourcepos`. | `false` |
|
|
167
168
|
|
|
168
169
|
### Render options
|
|
169
170
|
|
|
@@ -203,6 +204,7 @@ Commonmarker.to_html('"Hi *there*"', options: {
|
|
|
203
204
|
| `tasklist` | Enables the [task list extension](https://github.github.com/gfm/#task-list-items-extension-) from the GFM spec. | `true` |
|
|
204
205
|
| `superscript` | Enables the superscript Comrak extension. | `false` |
|
|
205
206
|
| `header_ids` | Enables the header IDs Comrak extension. from the GFM spec. | `""` |
|
|
207
|
+
| `header_id_prefix_in_href` | Also add the prefix to generated `href` attributes pointing to headers. | `false` |
|
|
206
208
|
| `footnotes` | Enables the footnotes extension per `cmark-gfm`. | `false` |
|
|
207
209
|
| `inline_footnotes` | Enables the inline footnotes extension. | `false` |
|
|
208
210
|
| `description_lists` | Enables the description lists extension. | `false` |
|
|
@@ -221,6 +223,7 @@ Commonmarker.to_html('"Hi *there*"', options: {
|
|
|
221
223
|
| `cjk_friendly_emphasis` | Enables the [CJK friendly emphasis](https://github.com/tats-u/markdown-cjk-friendly) extension. | `false` |
|
|
222
224
|
| `highlight` | Enables highlighting via `==` | `false` |
|
|
223
225
|
| `insert` | Enables the insert extension, rendering `++text++` as `<ins>text</ins>`. | `false` |
|
|
226
|
+
| `block_directive` | Enables the block directive extension. | `false` |
|
|
224
227
|
|
|
225
228
|
For more information on these options, see [the comrak documentation](https://github.com/kivikakk/comrak#usage).
|
|
226
229
|
|
|
@@ -231,6 +234,8 @@ providing further niceties.
|
|
|
231
234
|
|
|
232
235
|
#### Syntax Highlighter Plugin
|
|
233
236
|
|
|
237
|
+
The syntax highlighter plugin is **enabled by default**, using the `"base16-ocean.dark"` theme. It applies syntax highlighting to fenced code blocks that specify a language.
|
|
238
|
+
|
|
234
239
|
The library comes with [a set of pre-existing themes](https://docs.rs/syntect/5.0.0/syntect/highlighting/struct.ThemeSet.html#implementations) for highlighting code:
|
|
235
240
|
|
|
236
241
|
- `"base16-ocean.dark"`
|
|
@@ -261,8 +266,6 @@ puts Commonmarker.to_html(code, plugins: { syntax_highlighter: { theme: "Inspire
|
|
|
261
266
|
# </code></pre>
|
|
262
267
|
````
|
|
263
268
|
|
|
264
|
-
By default, the plugin uses the `"base16-ocean.dark"` theme to syntax highlight code.
|
|
265
|
-
|
|
266
269
|
To disable this plugin, set the value to `nil`:
|
|
267
270
|
|
|
268
271
|
````ruby
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/commonmarker/config.rb
CHANGED
|
@@ -12,6 +12,7 @@ module Commonmarker
|
|
|
12
12
|
relaxed_autolinks: false,
|
|
13
13
|
leave_footnote_definitions: false,
|
|
14
14
|
ignore_setext: false,
|
|
15
|
+
sourcepos_chars: false,
|
|
15
16
|
}.freeze,
|
|
16
17
|
render: {
|
|
17
18
|
hardbreaks: true,
|
|
@@ -36,6 +37,7 @@ module Commonmarker
|
|
|
36
37
|
tasklist: true,
|
|
37
38
|
superscript: false,
|
|
38
39
|
header_ids: "",
|
|
40
|
+
header_id_prefix_in_href: false,
|
|
39
41
|
footnotes: false,
|
|
40
42
|
inline_footnotes: false,
|
|
41
43
|
description_lists: false,
|
|
@@ -55,6 +57,7 @@ module Commonmarker
|
|
|
55
57
|
cjk_friendly_emphasis: false,
|
|
56
58
|
highlight: false,
|
|
57
59
|
insert: false,
|
|
60
|
+
block_directive: false,
|
|
58
61
|
}.freeze,
|
|
59
62
|
format: [:html].freeze,
|
|
60
63
|
}.freeze
|
data/lib/commonmarker/version.rb
CHANGED
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.8.0
|
|
5
5
|
platform: x64-mingw-ucrt
|
|
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: 2026-
|
|
12
|
+
date: 2026-04-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|