markdown moment

This commit is contained in:
Yash Karandikar 2022-04-16 21:54:37 -05:00
parent 85f4e1c89d
commit 5abb3e80d6

View file

@ -268,7 +268,18 @@ impl EventHandler for Handler {
Start(tag) => match tag {
Emphasis => computed.push('\x1D'),
Strong => computed.push('\x02'),
Link(_, dest, _) => computed.push_str(&dest),
Link(_, dest, _) => {
computed.push_str(&dest);
continue;
}
List(num) => {
if let Some(num) = num {
computed.push_str(&format!("{}. ", num));
} else {
computed.push_str("- ");
}
}
BlockQuote => computed.push_str("> "),
_ => {}
},
_ => {}