commonmarker 2.7.0-aarch64-linux → 2.8.2-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 881cb36813b999dbb2b127ee56838285cdc376c647edd7d5dd761111ac2f800a
4
- data.tar.gz: fd1253d4201a35a1ccb2c322d1729854bd2f94f1975488f533a2db445b80f0c7
3
+ metadata.gz: 50202cdbb5d7573c60c64e2b662ccfd7ce075b1068a82dd519762ad0462f2b14
4
+ data.tar.gz: 15c0cdab4faa8c87d2755a9e18bfdc5a4f77e0b179e6c775b2706250276f1198
5
5
  SHA512:
6
- metadata.gz: 69066c5529014fadbac525c824c2a3a9e87f8f9c03dd2b4103dec9ebf04c78c2efda991d6f260d338d78cdb527aebae92a4de910246fe06b00175778bfe85616
7
- data.tar.gz: e548990be1abb548adacaa0eb38206a8d31e5f55c31578b720eef0f21d026a2a01ea6dd00836de0ecf3e239a41a6d3fc80a50f42f678bca360faa0acbf595f90
6
+ metadata.gz: eb9ef2212252527bc41dd1a158f90dce7ff4775641edef6ab1d384d33c2f7c54b71a3ecfd17489a7b13f3a1d3642481550782c3c49d0641ac40047b93699e00d
7
+ data.tar.gz: f4e5954382909701c307f2c628988e77e2d40a60d6d849f091e0cb2964b9bb3bd1563b99d9f14ebec99c3997b92508eb4badfff1da4c04aefa24a82eecdc154c
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, several extensions not in any spec have been enabled, for the sake of end user convenience when generating HTML.
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
 
@@ -85,6 +85,7 @@ You can also modify the following attributes:
85
85
  - `list_start`
86
86
  - `list_tight`
87
87
  - `fence_info`
88
+ - `alert_type`
88
89
 
89
90
  #### Example: Walking the AST
90
91
 
@@ -164,6 +165,7 @@ Note that there is a distinction in comrak for "parse" options and "render" opti
164
165
  | `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
166
  | `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
167
  | `ignore_setext` | Ignores setext-style headings. | `false` |
168
+ | `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
169
 
168
170
  ### Render options
169
171
 
@@ -203,6 +205,7 @@ Commonmarker.to_html('"Hi *there*"', options: {
203
205
  | `tasklist` | Enables the [task list extension](https://github.github.com/gfm/#task-list-items-extension-) from the GFM spec. | `true` |
204
206
  | `superscript` | Enables the superscript Comrak extension. | `false` |
205
207
  | `header_ids` | Enables the header IDs Comrak extension. from the GFM spec. | `""` |
208
+ | `header_id_prefix_in_href` | Also add the prefix to generated `href` attributes pointing to headers. | `false` |
206
209
  | `footnotes` | Enables the footnotes extension per `cmark-gfm`. | `false` |
207
210
  | `inline_footnotes` | Enables the inline footnotes extension. | `false` |
208
211
  | `description_lists` | Enables the description lists extension. | `false` |
@@ -221,6 +224,7 @@ Commonmarker.to_html('"Hi *there*"', options: {
221
224
  | `cjk_friendly_emphasis` | Enables the [CJK friendly emphasis](https://github.com/tats-u/markdown-cjk-friendly) extension. | `false` |
222
225
  | `highlight` | Enables highlighting via `==` | `false` |
223
226
  | `insert` | Enables the insert extension, rendering `++text++` as `<ins>text</ins>`. | `false` |
227
+ | `block_directive` | Enables the block directive extension. | `false` |
224
228
 
225
229
  For more information on these options, see [the comrak documentation](https://github.com/kivikakk/comrak#usage).
226
230
 
@@ -231,6 +235,8 @@ providing further niceties.
231
235
 
232
236
  #### Syntax Highlighter Plugin
233
237
 
238
+ 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.
239
+
234
240
  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
241
 
236
242
  - `"base16-ocean.dark"`
@@ -261,8 +267,6 @@ puts Commonmarker.to_html(code, plugins: { syntax_highlighter: { theme: "Inspire
261
267
  # </code></pre>
262
268
  ````
263
269
 
264
- By default, the plugin uses the `"base16-ocean.dark"` theme to syntax highlight code.
265
-
266
270
  To disable this plugin, set the value to `nil`:
267
271
 
268
272
  ````ruby
Binary file
Binary file
Binary file
Binary file
@@ -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
@@ -26,6 +26,7 @@ module Commonmarker
26
26
  :list_start,
27
27
  :list_tight,
28
28
  :fence_info,
29
+ :alert_type,
29
30
  ].filter_map do |name|
30
31
  [name, __send__(name)]
31
32
  rescue StandardError
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmarker
4
- VERSION = "2.7.0"
4
+ VERSION = "2.8.2"
5
5
  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.7.0
4
+ version: 2.8.2
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-03-14 00:00:00.000000000 Z
12
+ date: 2026-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake