commonmarker 2.7.0-x86_64-linux → 2.8.0-x86_64-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: 953049d4c5af837b5f6324739b90b01e1bcd72b3037f229c0ced77ff78a4df2d
4
- data.tar.gz: bc94ebfed235f77d3fa254e6879299c8f0842831651946fa9073b8af365e7c84
3
+ metadata.gz: 63bcd4c8e9cac89c76d36af6f3f67732fe58851d3a629aa9f71c120d048ff8f7
4
+ data.tar.gz: 2d0187cb05f1d13b5ddb8fe4f88c8ea661ed2d795c703f974a0cb6593de4ba73
5
5
  SHA512:
6
- metadata.gz: e41ee54a8f929909e4bca93ea8e469ef3e8b63163348c5c69ebbb59bafbf7f2f1ddeac4a9d4616dffe3d11ced9a7fdaf3cdc965e343b1fa1600955e099cfaa27
7
- data.tar.gz: 55e8d5a1903616c9feca256a96cfda48021383caac52dc752c16be4cb50524b35558f92d23d348b8e41f1fc431022426c2ffc8454bedbe22612d24c13e9a0f6a
6
+ metadata.gz: 8de3fc29abb20c4dedc18d0cd2a28458e27abb5222125e36b4b2f250872c67697fc31ec478a7e1f29b937109d4a8788d50f0838e9eb5a69f7392c0c140b6cffb
7
+ data.tar.gz: 7b2a0085c5bde5a8e0d7e1134123ebcccedf2a6e8879c91fe0c3e2bac189631a54cba564c39656fb23f15230ef1fc8291dcc6f01fce6bc4f6c9a606247291c44
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
 
@@ -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
@@ -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
@@ -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.0"
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.0
5
5
  platform: x86_64-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-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake