gitlab-glfm-markdown 0.0.28 → 0.0.29
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 +1 -2
- data/ext/glfm_markdown/Cargo.toml +2 -2
- data/ext/glfm_markdown/src/glfm.rs +0 -2
- data/ext/glfm_markdown/src/lib.rs +0 -1
- data/ext/glfm_markdown/src/main.rs +0 -5
- data/lib/glfm_markdown/version.rb +1 -1
- data/lib/glfm_markdown.rb +0 -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: 370c4c5b26fc1bf0294d7043fdd6a493327d216210e7608dd5c7929409f15d3e
|
4
|
+
data.tar.gz: ccc931a9c6e548a9e39adb08950612189d2190135eacb7d559d6c4329b74e3ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b357f1e7d36b82db53ba3a84005a3716045796bbeb06b2418d75f18993382c9dd3ed7c2df74a7da76a4d98e734b05c0bab99216844cf04da5ab15130d710aa9
|
7
|
+
data.tar.gz: 36ce833b72d7d1d98bd173008823924f7279d36657c8d034791484cb511e0242756f643b10d9e8b62eef5ef16416f30dcb34927a88c9e84093146e4588407012
|
data/Cargo.lock
CHANGED
@@ -227,9 +227,9 @@ checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
|
|
227
227
|
|
228
228
|
[[package]]
|
229
229
|
name = "comrak"
|
230
|
-
version = "0.
|
230
|
+
version = "0.38.0"
|
231
231
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
232
|
-
checksum = "
|
232
|
+
checksum = "f690706b5db081dccea6206d7f6d594bb9895599abea9d1a0539f13888781ae8"
|
233
233
|
dependencies = [
|
234
234
|
"caseless",
|
235
235
|
"emojis",
|
@@ -320,7 +320,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
320
320
|
|
321
321
|
[[package]]
|
322
322
|
name = "glfm_markdown"
|
323
|
-
version = "0.0.
|
323
|
+
version = "0.0.29"
|
324
324
|
dependencies = [
|
325
325
|
"clap",
|
326
326
|
"comrak",
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Implements GLFM (as used by GitLab) using the Rust-based markdown parser [comrak](https://github.com/kivikakk/comrak)
|
7
7
|
and providing a Ruby interface.\
|
8
|
-
_Currently using `comrak 0.
|
8
|
+
_Currently using `comrak 0.38.0`_.
|
9
9
|
|
10
10
|
This project is still in constant flux, so interfaces and functionality can change at any time.
|
11
11
|
|
@@ -55,7 +55,6 @@ GLFMMarkdown.to_html('# header', options: { sourcepos: true })
|
|
55
55
|
| `relaxed_autolinks` | Enable relaxing of autolink parsing, allowing links to be recognized when in brackets |
|
56
56
|
| `relaxed_tasklist_character` | Enable relaxing which character is allowed in tasklists |
|
57
57
|
| `sourcepos` | Include source mappings in HTML attributes |
|
58
|
-
| `experimental_inline_sourcepos` | Include inline sourcepos in HTML output, which is known to have issues |
|
59
58
|
| `smart` | Use smart punctuation |
|
60
59
|
| `spoiler` | Enable the `spoiler` extension - use double vertical bars |
|
61
60
|
| `strikethrough` | Enable the `strikethrough` extension |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[package]
|
2
2
|
name = "glfm_markdown"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.29"
|
4
4
|
edition = "2021"
|
5
5
|
authors = ["digitalmoksha <bwalker@gitlab.com>"]
|
6
6
|
description = "GitLab Flavored Markdown parser and formatter. 100% CommonMark-compatible. Experimental."
|
@@ -15,7 +15,7 @@ required-features = ["cli"]
|
|
15
15
|
|
16
16
|
[dependencies]
|
17
17
|
clap = { version = "4.0", optional = true, features = ["derive", "string"] }
|
18
|
-
comrak = { version = "0.
|
18
|
+
comrak = { version = "0.38.0", default-features = false, features = ["shortcodes"] }
|
19
19
|
magnus = "0.6.2"
|
20
20
|
rb-sys = { version = "0.9.86", default-features = false, features = ["stable-api-compiled-fallback"] }
|
21
21
|
|
@@ -24,7 +24,6 @@ pub struct RenderOptions {
|
|
24
24
|
pub relaxed_autolinks: bool,
|
25
25
|
pub relaxed_tasklist_character: bool,
|
26
26
|
pub sourcepos: bool,
|
27
|
-
pub experimental_inline_sourcepos: bool,
|
28
27
|
pub smart: bool,
|
29
28
|
pub spoiler: bool,
|
30
29
|
pub strikethrough: bool,
|
@@ -81,7 +80,6 @@ fn render_comrak(text: String, options: RenderOptions) -> String {
|
|
81
80
|
comrak_options.render.ignore_empty_links = options.ignore_empty_links;
|
82
81
|
comrak_options.render.ignore_setext = options.ignore_setext;
|
83
82
|
comrak_options.render.sourcepos = options.sourcepos;
|
84
|
-
comrak_options.render.experimental_inline_sourcepos = options.experimental_inline_sourcepos;
|
85
83
|
// comrak_options.render.syntax_highlighting = options.syntax_highlighting;
|
86
84
|
|
87
85
|
comrak_options.render.unsafe_ = options.unsafe_;
|
@@ -39,7 +39,6 @@ pub fn render_to_html_rs(text: String, options: RHash) -> String {
|
|
39
39
|
relaxed_autolinks: get_bool_opt("relaxed_autolinks", options),
|
40
40
|
relaxed_tasklist_character: get_bool_opt("relaxed_tasklist_character", options),
|
41
41
|
sourcepos: get_bool_opt("sourcepos", options),
|
42
|
-
experimental_inline_sourcepos: get_bool_opt("experimental_inline_sourcepos", options),
|
43
42
|
smart: get_bool_opt("smart", options),
|
44
43
|
spoiler: get_bool_opt("spoiler", options),
|
45
44
|
strikethrough: get_bool_opt("strikethrough", options),
|
@@ -106,10 +106,6 @@ struct Args {
|
|
106
106
|
#[arg(long)]
|
107
107
|
sourcepos: bool,
|
108
108
|
|
109
|
-
/// Include inline sourcepos in HTML output, which is known to have issues.
|
110
|
-
#[arg(long)]
|
111
|
-
experimental_inline_sourcepos: bool,
|
112
|
-
|
113
109
|
/// Use smart punctuation
|
114
110
|
#[arg(long)]
|
115
111
|
smart: bool,
|
@@ -205,7 +201,6 @@ fn main() {
|
|
205
201
|
relaxed_autolinks: cli.relaxed_autolinks,
|
206
202
|
relaxed_tasklist_character: cli.relaxed_tasklist_character,
|
207
203
|
sourcepos: cli.sourcepos,
|
208
|
-
experimental_inline_sourcepos: cli.experimental_inline_sourcepos,
|
209
204
|
smart: cli.smart,
|
210
205
|
spoiler: cli.spoiler,
|
211
206
|
strikethrough: cli.strikethrough,
|
data/lib/glfm_markdown.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-glfm-markdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|