fix: add more markdown escape chars, change RichText enum
This commit is contained in:
parent
a0819ac72c
commit
54f42bcb54
13 changed files with 725 additions and 273 deletions
|
|
@ -380,13 +380,13 @@ impl From<TextComponent> for crate::model::richtext::TextComponent {
|
|||
browse_id,
|
||||
} => match page_type.to_url_target(browse_id) {
|
||||
Some(target) => Self::YouTube { text, target },
|
||||
None => Self::Text(text),
|
||||
None => Self::Text { text },
|
||||
},
|
||||
TextComponent::Web { text, url } => Self::Web {
|
||||
text,
|
||||
url: util::sanitize_yt_url(&url),
|
||||
},
|
||||
TextComponent::Text { text } => Self::Text(text),
|
||||
TextComponent::Text { text } => Self::Text { text },
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue