gitlab-glfm-markdown 0.1.1 → 0.1.2
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/Cargo.lock +3 -3
- data/README.md +2 -1
- data/ext/gitlab_glfm_markdown/Cargo.toml +2 -2
- data/ext/gitlab_glfm_markdown/src/main.rs +4 -1
- data/lib/gitlab_glfm_markdown/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: de1eb7e07d1cd3a1712304f505d464641ed86eec65296ecfae254b9bd936f65d
|
|
4
|
+
data.tar.gz: fad847598397b9fcbe42948ea51efc3441ac650eab667c63b947fb6a40f31216
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a699ed9b997e798c07b72a9ba0ba62ff5852832cac0607909beb5589aac133402d570260ddfb2a1cb295356547eccba3396fb18384de95140c6f1b56cd3681e4
|
|
7
|
+
data.tar.gz: ae8d0756127e96f47a023805dbd59388ea7b5c89366a2285ccc395dcb1c866fc2c3b408fe8ff187dd707990714e38142a3415c2ac7cba72690540478f5cc4a26
|
data/Cargo.lock
CHANGED
|
@@ -220,9 +220,9 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
|
|
|
220
220
|
|
|
221
221
|
[[package]]
|
|
222
222
|
name = "comrak"
|
|
223
|
-
version = "1.
|
|
223
|
+
version = "1.2.0"
|
|
224
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
-
checksum = "
|
|
225
|
+
checksum = "a253d04a12dff46b9ff641890e76bad5f6475afa891faac93d736a04fed5804e"
|
|
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.1.
|
|
348
|
+
version = "0.1.2"
|
|
349
349
|
dependencies = [
|
|
350
350
|
"clap",
|
|
351
351
|
"comrak",
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](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) (1.
|
|
7
|
+
[Comrak](https://github.com/kivikakk/comrak) (1.2.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
|
|
|
@@ -71,6 +71,7 @@ GLFMMarkdown.to_html('# header', options: { glfm: true, sourcepos: false })
|
|
|
71
71
|
| `ignore_empty_links` | Ignore empty links in input |
|
|
72
72
|
| `ignore_setext` | Ignore setext headings in input |
|
|
73
73
|
| `inapplicable_tasks` | Allow inapplicable tasks items. Must also set the `relaxed_tasklist_character` option. |
|
|
74
|
+
| `link_attributes` | Parse attributes such as `{#id .class key=value}` after links and images. Attributes render only when `unsafe` is also set. |
|
|
74
75
|
| `math_code` | Enables `math code` extension, using math code syntax |
|
|
75
76
|
| `math_dollars` | Enables `math dollars` extension, using math dollar syntax |
|
|
76
77
|
| `multiline_block_quotes` | Enable the `multiline-block-quotes` extension |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "gitlab-glfm-markdown"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
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 = "1.
|
|
18
|
+
comrak = { version = "1.2", default-features = false, features = ["attributes", "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"
|
|
@@ -114,7 +114,10 @@ struct Args {
|
|
|
114
114
|
#[arg(long)]
|
|
115
115
|
inapplicable_tasks: bool,
|
|
116
116
|
|
|
117
|
-
#[arg(
|
|
117
|
+
#[arg(
|
|
118
|
+
long,
|
|
119
|
+
help = "Parse attributes such as `{#id .class key=value}` after links and images. Attributes render only when `unsafe` is also set"
|
|
120
|
+
)]
|
|
118
121
|
link_attributes: bool,
|
|
119
122
|
|
|
120
123
|
/// Enables `math code` extension, using math code syntax
|
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.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
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-11-
|
|
12
|
+
date: 2026-11-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rb_sys
|