gitlab-glfm-markdown 0.0.35-arm64-darwin → 0.0.36-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 528a1af01377e71c871ff26596d21ba821ff0c25d693bd475c0be9675805f01d
4
- data.tar.gz: c879a3ce7d24e3ae37f07b87f255316b99b7d412a5f8468749853c48829e0bef
3
+ metadata.gz: 63a92c28c4c5f66a6f029c0826e6c1c890de29f8ca04824ba61a88b952d89636
4
+ data.tar.gz: e2f0e265ade27ebab74cad0c394a7199938695ae59a0c0ff530c65c0971b745b
5
5
  SHA512:
6
- metadata.gz: 6a4aa3ce319503fe76d5c7ad69268eebed4320761e7661fab70503a5f6b3c870ce451fe3626b683c8818aca940127feca195f024bc1e4831072b5e839ee26262
7
- data.tar.gz: b5c0d750df307f9704d0428f31ff3bfdcfebe44637ae6c0930c40bb489d7a52779b618da373ac957bbf8dbde40fff4ebc971668fc0f96aca2e3bc475b016c15f
6
+ metadata.gz: 83d0abb4468e912b5ceda50e019586ed4c648875fbf68b13822c7852008a606b98b9d4aa07ecad72811e885d1c2b3854585aed542120eed116ed3bc58e347faf
7
+ data.tar.gz: a67c70bb93a24695997104243e57dadd5a520bbb13c416c738b848deccacb6e19ec2ef73afcab0e06c876354e777fe80053a61ab68a482a71d58ab8f44ad337f
data/Cargo.lock CHANGED
@@ -320,7 +320,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
320
320
 
321
321
  [[package]]
322
322
  name = "glfm_markdown"
323
- version = "0.0.35"
323
+ version = "0.0.36"
324
324
  dependencies = [
325
325
  "clap",
326
326
  "comrak",
@@ -320,7 +320,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
320
320
 
321
321
  [[package]]
322
322
  name = "glfm_markdown"
323
- version = "0.0.35"
323
+ version = "0.0.36"
324
324
  dependencies = [
325
325
  "clap",
326
326
  "comrak",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "glfm_markdown"
3
- version = "0.0.35"
3
+ version = "0.0.36"
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."
@@ -1,6 +1,6 @@
1
1
  use std::fmt::{self, Write};
2
2
 
3
- use comrak::html::{collect_text, format_node_default, render_sourcepos, ChildRendering, Context};
3
+ use comrak::html::{render_sourcepos, ChildRendering, Context};
4
4
  use comrak::nodes::{AstNode, ListType, NodeValue};
5
5
  use comrak::{create_formatter, html};
6
6
  use lazy_static::lazy_static;
@@ -43,9 +43,6 @@ create_formatter!(CustomFormatter<RenderUserData>, {
43
43
  NodeValue::TaskItem(_) => |context, node, entering| {
44
44
  return render_task_item(context, node, entering);
45
45
  },
46
- NodeValue::Heading(_) => |context, node, entering| {
47
- return render_heading(context, node, entering);
48
- },
49
46
  NodeValue::Escaped => |context, node, entering| {
50
47
  return render_escaped(context, node, entering);
51
48
  },
@@ -312,45 +309,6 @@ fn render_text<'a>(
312
309
  Ok(ChildRendering::HTML)
313
310
  }
314
311
 
315
- fn render_heading<'a>(
316
- context: &mut Context<RenderUserData>,
317
- node: &'a AstNode<'a>,
318
- entering: bool,
319
- ) -> Result<ChildRendering, fmt::Error> {
320
- let NodeValue::Heading(ref nh) = node.data.borrow().value else {
321
- unreachable!()
322
- };
323
-
324
- match context.plugins.render.heading_adapter {
325
- None => {
326
- // Overrides the default handling in order to render the heading text
327
- // inside the anchor tag to better support screen readers
328
- if entering {
329
- context.cr()?;
330
- write!(context, "<h{}", nh.level)?;
331
- render_sourcepos(context, node)?;
332
- context.write_str(">")?;
333
-
334
- if let Some(ref prefix) = context.options.extension.header_ids {
335
- let text_content = collect_text(node);
336
- let id = context.anchorizer.anchorize(&text_content);
337
- write!(
338
- context,
339
- r##"<a href="#{id}" class="anchor" id="{prefix}{id}">"##
340
- )?;
341
- }
342
- } else {
343
- if context.options.extension.header_ids.is_some() {
344
- write!(context, "</a>")?;
345
- }
346
- writeln!(context, "</h{}>", nh.level)?;
347
- }
348
- Ok(ChildRendering::HTML)
349
- }
350
- Some(_adapter) => format_node_default(context, node, entering),
351
- }
352
- }
353
-
354
312
  fn render_escaped<'a>(
355
313
  context: &mut Context<RenderUserData>,
356
314
  node: &'a AstNode<'a>,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GLFMMarkdown
4
- VERSION = '0.0.35'
4
+ VERSION = '0.0.36'
5
5
  end
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.35
4
+ version: 0.0.36
5
5
  platform: arm64-darwin
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-09-30 00:00:00.000000000 Z
12
+ date: 2025-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb_sys