gitlab-glfm-markdown 0.0.45-aarch64-linux-gnu → 0.0.46-aarch64-linux-gnu

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: 0621eb1f68f534f0d9b5d50eceb9342abc18774dd42797bca8604fa280e9c143
4
- data.tar.gz: 69a0322ebf0a4cbaeb3b6003c99d2ef0c2b2f5c68362c86c8495459107ab3313
3
+ metadata.gz: c18eca636a10ba74adddf31fdd8fd4f83fca84097411dcbd1f460148f7d1faf1
4
+ data.tar.gz: c84a35c02f555d78beb85e16ed8bf44edf512fc8891c15345756174194ff4df5
5
5
  SHA512:
6
- metadata.gz: ed660df9d87d80ea24bacdaa19d41fe66539ddb18d85199c20fe350f9540fc414e9885026c5082e63d1d6392d7f89b4e203208cceea1d4c9d548d36d2968d539
7
- data.tar.gz: fe96b16b2fccf629226ea3cb02866000922767e3c6672c325fe794c37a84f48a2febf9f45bf920582ccb22b57ed07529d84a91ba79228352025ef1c6eb6e1f76
6
+ metadata.gz: d8260e7b590874a0578c4194de9586b8e82df820bfcbd4d52926698a95f0fa5c559b3b8897c62a8048b9a624387741d604b07ec115564523a71487055596d482
7
+ data.tar.gz: f84583d880fda4466279a225120e36f0a7d88d88aeb1a8cf5f3e166f79e27db2e3942369df717ffb5e99016065e4b815f2a7f64cb9dcc992daf5fd4d68c73ead
data/Cargo.lock CHANGED
@@ -220,9 +220,9 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
220
220
 
221
221
  [[package]]
222
222
  name = "comrak"
223
- version = "0.56.0"
223
+ version = "0.58.0"
224
224
  source = "registry+https://github.com/rust-lang/crates.io-index"
225
- checksum = "2544c4d6b6da7d54e95ac2833b464bf3dffa0666237868f2bf4ec5e11c9ba8cc"
225
+ checksum = "0cb1089513c824bca82b76a086cfef0f7edbf25102b927dd21317041113a3ac4"
226
226
  dependencies = [
227
227
  "caseless",
228
228
  "emojis",
@@ -345,7 +345,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
345
345
 
346
346
  [[package]]
347
347
  name = "gitlab-glfm-markdown"
348
- version = "0.0.45"
348
+ version = "0.0.46"
349
349
  dependencies = [
350
350
  "clap",
351
351
  "comrak",
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Latest Release](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/badges/release.svg)](https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown/-/releases)
5
5
 
6
6
  Implements GLFM (as used by GitLab) using the Rust-based Markdown parser
7
- [Comrak](https://github.com/kivikakk/comrak) (0.56.0), providing a Ruby interface.
7
+ [Comrak](https://github.com/kivikakk/comrak) (0.58.0), providing a Ruby interface.
8
8
 
9
9
  This project is still in constant flux, so interfaces and functionality can change at any time.
10
10
 
@@ -37,16 +37,25 @@ require 'gitlab-glfm-markdown'
37
37
  GLFMMarkdown.to_html('# header', options: { sourcepos: true })
38
38
  ```
39
39
 
40
+ An option you do not pass is off. Pass `glfm: true` to start from the
41
+ defaults in `GLFMMarkdown::GLFM_DEFAULT_OPTIONS` instead; the options you
42
+ pass are merged over them, so here `sourcepos: false` turns off a default:
43
+
44
+ ```ruby
45
+ GLFMMarkdown.to_html('# header', options: { glfm: true, sourcepos: false })
46
+ ```
47
+
40
48
  ### Options
41
49
 
42
50
  | Option name | Description |
43
51
  |-------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
52
+ | `alerts` | Enable the `alerts` extension - render GitHub-style alerts such as `> [!note]` and `> [!warning]` |
44
53
  | `autolink` | Enable the `autolink` extension |
45
54
  | `cjk_friendly_emphasis` | Enable the [`cjk_friendly_emphasis` extension](https://github.com/tats-u/markdown-cjk-friendly) |
46
55
  | `default_html` | Disables any custom HTML, and returns default HTML from `comrak` |
47
56
  | `description_lists` | Enable the `description-lists` extension |
48
- | `escape_char_spans` | Wrap escaped characters in a `<span>` to allow any post-processing to recognize them |
49
57
  | `escape` | Escape raw HTML instead of clobbering it |
58
+ | `escaped_char_spans` | Wrap escaped characters in a `<span>` to allow any post-processing to recognize them |
50
59
  | `figure_with_caption` | Render the image as a figure element with the title as its caption |
51
60
  | `footnotes` | Enable the `footnotes` extension |
52
61
  | `full_info_string` | Enable full info strings for code blocks |
@@ -73,6 +82,7 @@ GLFMMarkdown.to_html('# header', options: { sourcepos: true })
73
82
  | `sourcepos` | Include source mappings in HTML attributes |
74
83
  | `spoiler` | Enable the `spoiler` extension - use double vertical bars |
75
84
  | `strikethrough` | Enable the `strikethrough` extension |
85
+ | `subscript` | Enable the `subscript` extension - use single tildes, as in `H~2~O`. When `strikethrough` is also set, only double tildes strike through |
76
86
  | `superscript` | Enable the `superscript` extension |
77
87
  | `table` | Enable the `table` extension |
78
88
  | `tasklist_classes` | Output classes on tasklist elements so that they can be styled with CSS |
@@ -111,7 +121,7 @@ should be followed.
111
121
 
112
122
  ### Releasing a new version
113
123
 
114
- To release a new version, create a merge request and use the `Release` template, following it's instructions.
124
+ To release a new version, create a merge request and use the `Release` template, following its instructions.
115
125
 
116
126
  Once merged, the new version with precompiled, native gems will automatically be
117
127
  published to [RubyGems](https://rubygems.org/gems/gitlab-glfm-markdown).
@@ -220,9 +220,9 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
220
220
 
221
221
  [[package]]
222
222
  name = "comrak"
223
- version = "0.56.0"
223
+ version = "0.58.0"
224
224
  source = "registry+https://github.com/rust-lang/crates.io-index"
225
- checksum = "2544c4d6b6da7d54e95ac2833b464bf3dffa0666237868f2bf4ec5e11c9ba8cc"
225
+ checksum = "0cb1089513c824bca82b76a086cfef0f7edbf25102b927dd21317041113a3ac4"
226
226
  dependencies = [
227
227
  "caseless",
228
228
  "emojis",
@@ -345,7 +345,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
345
345
 
346
346
  [[package]]
347
347
  name = "gitlab-glfm-markdown"
348
- version = "0.0.45"
348
+ version = "0.0.46"
349
349
  dependencies = [
350
350
  "clap",
351
351
  "comrak",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "gitlab-glfm-markdown"
3
- version = "0.0.45"
3
+ version = "0.0.46"
4
4
  edition = "2021"
5
5
  authors = ["digitalmoksha <bwalker@gitlab.com>", "Asherah Connor <aconnor@gitlab.com>"]
6
6
  description = "GitLab Flavored Markdown parser and formatter. 100% CommonMark-compatible."
@@ -15,7 +15,7 @@ required-features = ["cli"]
15
15
 
16
16
  [dependencies]
17
17
  clap = { version = "=4.4.18", optional = true, features = ["derive", "string"] }
18
- comrak = { version = "0.56.0", default-features = false, features = ["shortcodes"] }
18
+ comrak = { version = "0.58.0", default-features = false, features = ["shortcodes"] }
19
19
  magnus = "0.8.2"
20
20
  rb-sys = { version = "0.9.124", default-features = false, features = ["stable-api-compiled-fallback"] }
21
21
  regex = "1.11.1"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GLFMMarkdown
4
- VERSION = '0.0.45'
4
+ VERSION = '0.0.46'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-glfm-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.45
4
+ version: 0.0.46
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Brett Walker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-10-07 00:00:00.000000000 Z
12
+ date: 2026-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys