File: 0024-pulldown-cmark-0.13.patch

package info (click to toggle)
rustup 1.27.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,636 kB
  • sloc: sh: 856; python: 233; javascript: 183; makefile: 27
file content (38 lines) | stat: -rw-r--r-- 1,268 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
This patch is based on the upstream commit descibed below, adapted for use
in the Debian package by Peter Michael Green.

commit 0851758bb2e7134d48b54a52f658aaccadb59de1
Author: rami3l <rami3l@outlook.com>
Date:   Mon Feb 17 10:11:08 2025 +0800

    fix(deps): update rust crate pulldown-cmark to 0.13

diff --git a/Cargo.toml b/Cargo.toml
index 93f5dbb8..6bdb354e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -59,1 +59,1 @@
-pulldown-cmark = { version = "0.12", default-features = false }
+pulldown-cmark = { version = "0.13", default-features = false }
diff --git a/src/cli/markdown.rs b/src/cli/markdown.rs
index 6f107c98..696cd708 100644
--- a/src/cli/markdown.rs
+++ b/src/cli/markdown.rs
@@ -157,6 +157,8 @@ impl<'a> LineFormatter<'a> {
             Tag::Link { .. } => {}
             Tag::Image { .. } => {}
             Tag::FootnoteDefinition(_name) => {}
+            Tag::Superscript => {}
+            Tag::Subscript => {}
         }
     }
 
@@ -197,6 +199,8 @@ impl<'a> LineFormatter<'a> {
             TagEnd::Image { .. } => {} // shouldn't happen, handled in start
             TagEnd::FootnoteDefinition => {}
             TagEnd::MetadataBlock(_) => {}
+            TagEnd::Superscript => {}
+            TagEnd::Subscript => {}
         }
     }