implement mdn rendering

This commit is contained in:
dignifiedquire
2019-11-30 14:14:28 +01:00
parent 5079e15401
commit 5adde12dff
2 changed files with 66 additions and 9 deletions

View File

@@ -470,11 +470,11 @@ impl Message {
ret
}
pub fn get_summarytext(&mut self, context: &Context, approx_characters: usize) -> String {
pub fn get_summarytext(&self, context: &Context, approx_characters: usize) -> String {
get_summarytext_by_raw(
self.type_0,
self.text.as_ref(),
&mut self.param,
&self.param,
approx_characters,
context,
)