char/phoebe
git clone https://git.t4t.associates/char/phoebe
aff1f8b
legacy
1mod convert_discord; 2mod convert_matrix; 3mod convert_plain; 4 5pub type MessageContent =Vec < MessageComponent >; 6 7# [ derive ( Debug , PartialEq , Eq )] 8pub enum MessageComponent { 9Plain ( String ), 10Link { 11target : String , 12text : MessageContent , 13}, 14 15Italic ( MessageContent ), 16Bold ( MessageContent ), 17Strikethrough ( MessageContent ), 18Underline ( MessageContent ), 19 20Code ( String ), 21CodeBlock { 22lang : Option < String >, 23source : String , 24}, 25 26Spoiler { 27reason : Option < String >, 28content : MessageContent , 29}, 30 31HardBreak , 32BlockQuote ( MessageContent ), 33} 34 35pub use convert_discord::{ convert_discord, format_discord}; 36pub use convert_matrix::{ convert_matrix, format_matrix}; 37pub use convert_plain:: convert_plain;