gitlab-glfm-markdown 0.0.36 → 0.0.37

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: bc1e0287e40c108ef4e38a49187bfba38d53a49d027007ea2251547ea58cb627
4
- data.tar.gz: 554e5694728f96700b4effbc238a842d93e8529b132c38c4e405c2c2136a16e4
3
+ metadata.gz: 0df34519c8f80342f03b83449e7cba9db8266f93bae8215860e3ce2f59d7d771
4
+ data.tar.gz: eb4737ce3b4bee3e8caef9c213d41153d9641534e2e87b3e5f8a3c2e435794cb
5
5
  SHA512:
6
- metadata.gz: 454c53b72e893c091f58328ccc095b1fc5a347c76583cfdb867a85dbedf9ec6967458edc71828114771a274563eeadcea1b40e430cc3b883a7c39d585720d1db
7
- data.tar.gz: 32ab7039e48e2565cc1a299ddd7132a1a698ebbd6cf079914aee5b53c96826093adfb895951f5b4a6cc9aa091d7ac02890ccca5002287e0f3cf57dc536919496
6
+ metadata.gz: 7866ed4fd904ea22297b9c32bcd2bf16134bb6f81177adf29fa95ea840f00d4b0ce9fda19445af0b3a85ed466c67e7c9bc248bec6f4ff61b4260ddc0bcb092ac
7
+ data.tar.gz: b3d4473e508ec740e37884c700171f64c57b08c2b2b59f825f49d41a5b03d06092d69adb400834ed6635e4f0e8b3ec23aaaafd4437f59590d98eaefe2d8efbe7
data/Cargo.lock CHANGED
@@ -320,7 +320,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
320
320
 
321
321
  [[package]]
322
322
  name = "glfm_markdown"
323
- version = "0.0.36"
323
+ version = "0.0.37"
324
324
  dependencies = [
325
325
  "clap",
326
326
  "comrak",
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.36"
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GLFMMarkdown
4
- VERSION = '0.0.36'
4
+ VERSION = '0.0.37'
5
5
  end
data/lib/glfm_markdown.rb CHANGED
@@ -8,6 +8,7 @@ load_rust_extension
8
8
  module GLFMMarkdown
9
9
  GLFM_DEFAULT_OPTIONS = {
10
10
  autolink: true,
11
+ cjk_friendly_emphasis: true,
11
12
  escaped_char_spans: false,
12
13
  footnotes: true,
13
14
  full_info_string: true,
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.36
4
+ version: 0.0.37
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: 2025-10-02 00:00:00.000000000 Z
12
+ date: 2025-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys