Skip to main content

parse_article

Function parse_article 

Source
pub fn parse_article(body: &str, attached: &[Attachment]) -> Content
Expand description

What an article (NIP-23) says, all of it: body read as Markdown proper, in which a line break in a paragraph is a space (see markdown::runs_of_prose). Its pictures stand where they are linked, between the paragraphs, and not under the text as a note’s do; and no page it links to is previewed under it: an article links to many, and none of them is what it is about.