commonmarker 2.6.3-aarch64-linux → 2.8.1-aarch64-linux
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 +8 -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 +5 -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: bb1b0130e522b115a4542d24768921cacd5c5f4693367af9c94f837335bf0b5e
|
|
4
|
+
data.tar.gz: 249daff6228c4b1202fc176cd2b1c95452ad16dfb87b9f78ed90c8e6ae90bce8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e6f71b8cd15f1b16d92e15934d7118f7c584e471538712762a9de2e53d42bced32bf1589fe2c1f58e7b7dd9f028b24aff9e9ac5ab4bab74c3e0b79b9fee89c9
|
|
7
|
+
data.tar.gz: dcca5f85de6aa65c0e90f214d832d010b42c78423623833759009ff41ebd458e6d8a1331853cc851a008ed9e18ad2247282d39f013e3f8b94a85347edf49512d
|
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
|
|
|
@@ -181,6 +182,7 @@ Note that there is a distinction in comrak for "parse" options and "render" opti
|
|
|
181
182
|
| `gfm_quirks` | Outputs HTML with GFM-style quirks; namely, not nesting `<strong>` inlines. | `false` |
|
|
182
183
|
| `prefer_fenced` | Always output fenced code blocks, even where an indented one could be used. | `false` |
|
|
183
184
|
| `tasklist_classes` | Add CSS classes to the HTML output of the tasklist extension | `false` |
|
|
185
|
+
| `compact_html` | Suppress newlines in pretty-printed HTML output. | `false` |
|
|
184
186
|
|
|
185
187
|
As well, there are several extensions which you can toggle in the same manner:
|
|
186
188
|
|
|
@@ -202,6 +204,7 @@ Commonmarker.to_html('"Hi *there*"', options: {
|
|
|
202
204
|
| `tasklist` | Enables the [task list extension](https://github.github.com/gfm/#task-list-items-extension-) from the GFM spec. | `true` |
|
|
203
205
|
| `superscript` | Enables the superscript Comrak extension. | `false` |
|
|
204
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` |
|
|
205
208
|
| `footnotes` | Enables the footnotes extension per `cmark-gfm`. | `false` |
|
|
206
209
|
| `inline_footnotes` | Enables the inline footnotes extension. | `false` |
|
|
207
210
|
| `description_lists` | Enables the description lists extension. | `false` |
|
|
@@ -219,6 +222,8 @@ Commonmarker.to_html('"Hi *there*"', options: {
|
|
|
219
222
|
| `alerts` | Enables the alerts extension. | `false` |
|
|
220
223
|
| `cjk_friendly_emphasis` | Enables the [CJK friendly emphasis](https://github.com/tats-u/markdown-cjk-friendly) extension. | `false` |
|
|
221
224
|
| `highlight` | Enables highlighting via `==` | `false` |
|
|
225
|
+
| `insert` | Enables the insert extension, rendering `++text++` as `<ins>text</ins>`. | `false` |
|
|
226
|
+
| `block_directive` | Enables the block directive extension. | `false` |
|
|
222
227
|
|
|
223
228
|
For more information on these options, see [the comrak documentation](https://github.com/kivikakk/comrak#usage).
|
|
224
229
|
|
|
@@ -229,6 +234,8 @@ providing further niceties.
|
|
|
229
234
|
|
|
230
235
|
#### Syntax Highlighter Plugin
|
|
231
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
|
+
|
|
232
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:
|
|
233
240
|
|
|
234
241
|
- `"base16-ocean.dark"`
|
|
@@ -259,8 +266,6 @@ puts Commonmarker.to_html(code, plugins: { syntax_highlighter: { theme: "Inspire
|
|
|
259
266
|
# </code></pre>
|
|
260
267
|
````
|
|
261
268
|
|
|
262
|
-
By default, the plugin uses the `"base16-ocean.dark"` theme to syntax highlight code.
|
|
263
|
-
|
|
264
269
|
To disable this plugin, set the value to `nil`:
|
|
265
270
|
|
|
266
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,
|
|
@@ -26,6 +27,7 @@ module Commonmarker
|
|
|
26
27
|
gfm_quirks: false,
|
|
27
28
|
prefer_fenced: false,
|
|
28
29
|
tasklist_classes: false,
|
|
30
|
+
compact_html: false,
|
|
29
31
|
}.freeze,
|
|
30
32
|
extension: {
|
|
31
33
|
strikethrough: true,
|
|
@@ -35,6 +37,7 @@ module Commonmarker
|
|
|
35
37
|
tasklist: true,
|
|
36
38
|
superscript: false,
|
|
37
39
|
header_ids: "",
|
|
40
|
+
header_id_prefix_in_href: false,
|
|
38
41
|
footnotes: false,
|
|
39
42
|
inline_footnotes: false,
|
|
40
43
|
description_lists: false,
|
|
@@ -53,6 +56,8 @@ module Commonmarker
|
|
|
53
56
|
alerts: false,
|
|
54
57
|
cjk_friendly_emphasis: false,
|
|
55
58
|
highlight: false,
|
|
59
|
+
insert: false,
|
|
60
|
+
block_directive: false,
|
|
56
61
|
}.freeze,
|
|
57
62
|
format: [:html].freeze,
|
|
58
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.1
|
|
5
5
|
platform: aarch64-linux
|
|
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-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|