From 0a95c82c88c8a791d7fd983e7fb9f568b77551a8 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Wed, 27 Mar 2024 11:35:59 -0400 Subject: [PATCH] Update pulldown-cmark --- cursive-core/Cargo.toml | 2 +- cursive-core/src/utils/markup/markdown.rs | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/cursive-core/Cargo.toml b/cursive-core/Cargo.toml index 034db7f6..0e6525ce 100644 --- a/cursive-core/Cargo.toml +++ b/cursive-core/Cargo.toml @@ -62,7 +62,7 @@ version = "0.4" [dependencies.pulldown-cmark] default-features = false optional = true -version = "0.9" +version = "0.10" [features] default = [] diff --git a/cursive-core/src/utils/markup/markdown.rs b/cursive-core/src/utils/markup/markdown.rs index 3d450772..8fa542c3 100644 --- a/cursive-core/src/utils/markup/markdown.rs +++ b/cursive-core/src/utils/markup/markdown.rs @@ -10,7 +10,7 @@ use crate::theme::{Effect, Style}; use crate::utils::markup::{StyledIndexedSpan, StyledString}; use crate::utils::span::IndexedCow; -use pulldown_cmark::{self, CowStr, Event, Tag}; +use pulldown_cmark::{self, CowStr, Event, Tag, TagEnd}; use unicode_width::UnicodeWidthStr; /// Parses the given string as markdown text. @@ -30,7 +30,7 @@ pub struct Parser<'a> { first: bool, stack: Vec