aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2023-05-23 16:31:43 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2023-05-23 16:31:43 +0200
commit0d005d2790b52e1c2e9f8555d97abfeb6e782536 (patch)
tree6d936dddbecc42334bbef2751985e6375ca35c2d
parent0be7464edbd0fae379eff1e18d64bd2099651040 (diff)
downloadmarkdown-rs-0d005d2790b52e1c2e9f8555d97abfeb6e782536.tar.gz
markdown-rs-0d005d2790b52e1c2e9f8555d97abfeb6e782536.tar.bz2
markdown-rs-0d005d2790b52e1c2e9f8555d97abfeb6e782536.zip
Fix escape in titles
-rw-r--r--src/construct/partial_title.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/partial_title.rs b/src/construct/partial_title.rs
index a12834f..cbf5653 100644
--- a/src/construct/partial_title.rs
+++ b/src/construct/partial_title.rs
@@ -187,7 +187,7 @@ pub fn inside(tokenizer: &mut Tokenizer) -> State {
/// ```
pub fn escape(tokenizer: &mut Tokenizer) -> State {
match tokenizer.current {
- Some(b'"' | b'\'' | b')') => {
+ Some(b'"' | b'\'' | b')' | b'\\') => {
tokenizer.consume();
State::Next(StateName::TitleInside)
}