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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c756b4eafc20c1970c555c106ba39171820842d9657ec83c16af2dec16017612
4
- data.tar.gz: bd06fe01efe3c504bb463deed689faeb5978e2565e4ec20b43d1f0db35de6c4e
3
+ metadata.gz: 370c4c5b26fc1bf0294d7043fdd6a493327d216210e7608dd5c7929409f15d3e
4
+ data.tar.gz: ccc931a9c6e548a9e39adb08950612189d2190135eacb7d559d6c4329b74e3ab
5
5
  SHA512:
6
- metadata.gz: fe343249425642e43f90063c997f3b023890f2f088ba2b40eeb411f2a5982478cb5457f4aef6322176c5034d72db47ecb7bc5e2cfcc4048743189aa1775b51ea
7
- data.tar.gz: dd6f0e4bd32d6552470b8f9cca84e73746d20b6fadd581272844dcb5f696792d5040fe4004a000a597c3700d5c3dc5a01d7785b6d17f279487b8b1e082811653
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.36.0"
230
+ version = "0.38.0"
231
231
  source = "registry+https://github.com/rust-lang/crates.io-index"
232
- checksum = "5afa2702ef2fecc5bd7ca605f37e875a6be3fc8138c4633e711a945b70351550"
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.28"
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.36.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.28"
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.36.0", default-features = false, features = ["shortcodes"] }
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GLFMMarkdown
4
- VERSION = '0.0.28'
4
+ VERSION = '0.0.29'
5
5
  end
data/lib/glfm_markdown.rb CHANGED
@@ -19,7 +19,6 @@ module GLFMMarkdown
19
19
  multiline_block_quotes: true,
20
20
  relaxed_autolinks: false,
21
21
  sourcepos: true,
22
- experimental_inline_sourcepos: true,
23
22
  smart: false,
24
23
  strikethrough: true,
25
24
  table: true,
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.28
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-03-04 00:00:00.000000000 Z
11
+ date: 2025-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys