gitlab-glfm-markdown 0.0.36-x86_64-linux-musl → 0.0.37-x86_64-linux-musl
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 +1 -1
- data/README.md +5 -0
- data/ext/glfm_markdown/Cargo.lock +1 -1
- data/ext/glfm_markdown/Cargo.toml +1 -1
- data/ext/glfm_markdown/src/glfm.rs +2 -0
- data/ext/glfm_markdown/src/main.rs +5 -0
- data/lib/glfm_markdown/3.1/glfm_markdown.so +0 -0
- data/lib/glfm_markdown/3.2/glfm_markdown.so +0 -0
- data/lib/glfm_markdown/3.3/glfm_markdown.so +0 -0
- data/lib/glfm_markdown/3.4/glfm_markdown.so +0 -0
- data/lib/glfm_markdown/version.rb +1 -1
- data/lib/glfm_markdown.rb +1 -0
- 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: 60b0df4a7831eb590d05259cc9add91e2a5effb714ef006a33075d4b6b854d19
|
4
|
+
data.tar.gz: e674d635f42c3d90c634b37bfc4401ea1172db68e1bf2d99854e5341bb8e2399
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4921d15dbb6551c605d96aeabd7373d0854ac914b8e8f138473c514d8a03eba954f77d7f9b317054f90e96c0caa8acbd438af6953cbe30718998699f586335
|
7
|
+
data.tar.gz: fe076c359d4e600181ce3c936413ad5f49d9087b56be14ff36ed1a08bca8ffda720901d8e79b127cb501991f834f5b4008d68ad4d545e2e22e537a9317776790
|
data/Cargo.lock
CHANGED
data/README.md
CHANGED
@@ -37,6 +37,7 @@ GLFMMarkdown.to_html('# header', options: { sourcepos: true })
|
|
37
37
|
| Option name | Description |
|
38
38
|
|-------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
39
39
|
| `autolink` | Enable the `autolink` extension |
|
40
|
+
| `cjk_friendly_emphasis` | Enable the `cjk_friendly_emphasis` extension |
|
40
41
|
| `description_lists` | Enable the `description-lists` extension |
|
41
42
|
| `escape` | Escape raw HTML instead of clobbering it |
|
42
43
|
| `escape_char_spans` | Wrap escaped characters in a `<span>` to allow any post-processing to recognize them |
|
@@ -111,4 +112,8 @@ published to [RubyGems](https://rubygems.org/gems/gitlab-glfm-markdown).
|
|
111
112
|
|
112
113
|
Bug reports and merge requests are welcome on GitLab at https://gitlab.com/gitlab-org/ruby/gems/gitlab-glfm-markdown.
|
113
114
|
|
115
|
+
Visit the [Community Contribute](https://about.gitlab.com/community/contribute/)
|
116
|
+
page for general information about contributing to GitLab, and using the
|
117
|
+
[community fork](https://gitlab.com/gitlab-community/gitlab-org/ruby/gems/gitlab-glfm-markdown).
|
118
|
+
|
114
119
|
Please refer to [CONTRIBUTING](CONTRIBUTING.md) for more details.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[package]
|
2
2
|
name = "glfm_markdown"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.37"
|
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. Experimental."
|
@@ -8,6 +8,7 @@ use crate::formatter::{CustomFormatter, RenderUserData};
|
|
8
8
|
pub struct RenderOptions {
|
9
9
|
pub alerts: bool,
|
10
10
|
pub autolink: bool,
|
11
|
+
pub cjk_friendly_emphasis: bool,
|
11
12
|
// pub default_info_string: String,
|
12
13
|
pub description_lists: bool,
|
13
14
|
pub escape: bool,
|
@@ -82,6 +83,7 @@ impl From<&RenderOptions> for comrak::Options<'_> {
|
|
82
83
|
|
83
84
|
comrak_options.extension.alerts = options.alerts;
|
84
85
|
comrak_options.extension.autolink = options.autolink;
|
86
|
+
comrak_options.extension.cjk_friendly_emphasis = options.cjk_friendly_emphasis;
|
85
87
|
comrak_options.extension.description_lists = options.description_lists;
|
86
88
|
comrak_options.extension.footnotes = options.footnotes;
|
87
89
|
// comrak_options.extension.front_matter_delimiter = options.front_matter_delimiter;
|
@@ -188,6 +188,10 @@ struct Args {
|
|
188
188
|
#[arg(long)]
|
189
189
|
only_escape_chars: Option<String>,
|
190
190
|
|
191
|
+
/// Enable 'cjk_friendly_emphasis' extension
|
192
|
+
#[arg(long)]
|
193
|
+
cjk_friendly_emphasis: bool,
|
194
|
+
|
191
195
|
/// Show debug information
|
192
196
|
#[arg(long)]
|
193
197
|
debug: bool,
|
@@ -210,6 +214,7 @@ fn main() {
|
|
210
214
|
let options = RenderOptions {
|
211
215
|
alerts: cli.alerts,
|
212
216
|
autolink: cli.autolink,
|
217
|
+
cjk_friendly_emphasis: cli.cjk_friendly_emphasis,
|
213
218
|
// default_info_string:
|
214
219
|
description_lists: cli.description_lists,
|
215
220
|
escape: cli.escape,
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/glfm_markdown.rb
CHANGED
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.
|
4
|
+
version: 0.0.37
|
5
5
|
platform: x86_64-linux-musl
|
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: 2025-10-
|
12
|
+
date: 2025-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rb_sys
|