Post styling

This commit is contained in:
2024-03-02 22:56:06 +01:00
parent 872bf84a0e
commit 33e9f6b95e
4 changed files with 134 additions and 71 deletions

View File

@ -91,6 +91,7 @@ fn parse_html(markdown: &str) -> String {
alt="{alt}"
src="{src}"
/>
<figcaption>
"#,
alt = title,
src = dest_url,
@ -100,7 +101,7 @@ fn parse_html(markdown: &str) -> String {
}
_ => event,
},
Event::End(TagEnd::Image) => Event::Html("</figure>".into()),
Event::End(TagEnd::Image) => Event::Html("</figcaption></figure>".into()),
_ => event,
});