fn parse_comment(text: &str, metadata: StyledString) -> (StyledString, Vec<String>) {
    let text = decode_html(text);

    let mut s = utils::combine_styled_strings(vec![metadata, StyledString::plain("\n")]);
    let mut links = vec![];
    parse_comment_helper(text, Style::default(), &mut s, &mut links);

    (s, links)
}
/// Parse a HTML comment into a styled text.
/// The fucntion also returns a list of links inside the comment beside the parsed styled text.
Parse a HTML comment into a styled text.
The fucntion also returns a list of links inside the comment beside the parsed styled text.
Parse a HTML comment into a styled text . The fucntion also returns a list of links inside the comment beside the parsed styled text .
fn parse_comment(text: &str, metadata: StyledString) -> (StyledString, Vec<String>) {
    let text = decode_html(text);
    let mut s = utils::combine_styled_strings(vec![metadata, StyledString::plain("\n")]);
    let mut links = vec![];
    parse_comment_helper(text, Style::default(), &mut s, &mut links);
    (s, links)
}
fn parse_comment ( text : & str , metadata : StyledString ) -> ( StyledString , Vec < String > ) { let text = decode_html ( text ) ; let mut s = utils :: combine_styled_strings ( vec ! [ metadata StyledString plain ( " \n " ) ] ) ; let mut links = vec ! [ ] ; parse_comment_helper ( text , Style :: default ( ) , & mut s , & mut links ) ; ( s , links ) }
Parse a HTML comment into a styled text.
Parse a HTML comment into a styled text .
text
&str
metadata
StyledString