gitlab-glfm-markdown 0.0.19-arm64-darwin → 0.0.20-arm64-darwin
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/glfm_markdown/Cargo.toml +2 -2
- data/ext/glfm_markdown/src/glfm.rs +2 -0
- data/ext/glfm_markdown/src/lib.rs +1 -0
- data/lib/glfm_markdown/2.7/glfm_markdown.bundle +0 -0
- data/lib/glfm_markdown/3.0/glfm_markdown.bundle +0 -0
- data/lib/glfm_markdown/3.1/glfm_markdown.bundle +0 -0
- data/lib/glfm_markdown/3.2/glfm_markdown.bundle +0 -0
- data/lib/glfm_markdown/3.3/glfm_markdown.bundle +0 -0
- data/lib/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: 6d8f58a27ec70a605f189dfc9c9869ea8dfbd5cefbdd2a7a85a9e61a6ff8fe47
|
4
|
+
data.tar.gz: a686ddb4c3e2a92074873ff5f29887e70fcbaeccd3674f0d785f8776bbe2e50c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0027f2b3f2fd3647112d05f0bfc348abf590ab3f97007c83fa96b3bdee2eef099113398221be7101bc1009c9d165480e218946188c59169e1eeb25a0506c5dd
|
7
|
+
data.tar.gz: cad1a49c804766ed0c320448357aae8dff4ef49de0df33e9e23ec46f89f108c1f7aaab6746c0cd44c24c5f829925329751ca6fda5609a54f6dec85e015e0cc60
|
data/Cargo.lock
CHANGED
@@ -224,9 +224,9 @@ checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422"
|
|
224
224
|
|
225
225
|
[[package]]
|
226
226
|
name = "comrak"
|
227
|
-
version = "0.
|
227
|
+
version = "0.28.0"
|
228
228
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
229
|
-
checksum = "
|
229
|
+
checksum = "c93ab3577cca16b4a1d80a88c2e0cd8b6e969e51696f0bbb0d1dcb0157109832"
|
230
230
|
dependencies = [
|
231
231
|
"caseless",
|
232
232
|
"derive_builder",
|
@@ -386,7 +386,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
386
386
|
|
387
387
|
[[package]]
|
388
388
|
name = "glfm_markdown"
|
389
|
-
version = "0.0.
|
389
|
+
version = "0.0.20"
|
390
390
|
dependencies = [
|
391
391
|
"clap",
|
392
392
|
"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.28.0`_.
|
9
9
|
|
10
10
|
This project is still in constant flux, so interfaces and functionality can change at any time.
|
11
11
|
|
@@ -38,6 +38,7 @@ GLFMMarkdown.to_html('# header', options: { sourcepos: true })
|
|
38
38
|
| `description_lists` | Enable the `description-lists` extension |
|
39
39
|
| `escape` | Escape raw HTML instead of clobbering it |
|
40
40
|
| `escape_char_spans` | Wrap escaped characters in a `<span>` to allow any post-processing to recognize them |
|
41
|
+
| `figure_with_caption` | Render the image as a figure element with the title as its caption |
|
41
42
|
| `footnotes` | Enable the `footnotes` extension |
|
42
43
|
| `full_info_string` | Enable full info strings for code blocks |
|
43
44
|
| `gemojis` | Enable the `gemojis` extensions - translate gemojis into UTF-8 characters |
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[package]
|
2
2
|
name = "glfm_markdown"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.20"
|
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.28.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
|
|
@@ -5,6 +5,7 @@ pub struct RenderOptions {
|
|
5
5
|
pub description_lists: bool,
|
6
6
|
pub escape: bool,
|
7
7
|
pub escaped_char_spans: bool,
|
8
|
+
pub figure_with_caption: bool,
|
8
9
|
pub footnotes: bool,
|
9
10
|
// pub front_matter_delimiter: String,
|
10
11
|
pub full_info_string: bool,
|
@@ -68,6 +69,7 @@ fn render_comrak(text: String, options: RenderOptions) -> String {
|
|
68
69
|
|
69
70
|
comrak_options.render.escape = options.escape;
|
70
71
|
comrak_options.render.escaped_char_spans = options.escaped_char_spans;
|
72
|
+
comrak_options.render.figure_with_caption = options.figure_with_caption;
|
71
73
|
comrak_options.render.full_info_string = options.full_info_string;
|
72
74
|
comrak_options.render.gfm_quirks = options.gfm_quirks;
|
73
75
|
comrak_options.render.github_pre_lang = options.github_pre_lang;
|
@@ -20,6 +20,7 @@ pub fn render_to_html_rs(text: String, options: RHash) -> String {
|
|
20
20
|
description_lists: get_bool_opt("description_lists", options),
|
21
21
|
escape: get_bool_opt("escape", options),
|
22
22
|
escaped_char_spans: get_bool_opt("escaped_char_spans", options),
|
23
|
+
figure_with_caption: get_bool_opt("figure_with_caption", options),
|
23
24
|
footnotes: get_bool_opt("footnotes", options),
|
24
25
|
// front_matter_delimiter: get_string_opt("front_matter_delimiter", options),
|
25
26
|
full_info_string: get_bool_opt("full_info_string", options),
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.20
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Brett Walker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|