Fix quotes escaping img alt attrs
This commit is contained in:
parent
892b2082c1
commit
cb6e666a6e
|
@ -102,7 +102,7 @@ impl Block {
|
|||
]
|
||||
.concat(),
|
||||
Block::image { file, caption } => {
|
||||
["<img src=\"", &file.url, "\" alt=\"", caption, "\"/>"].concat()
|
||||
["<img src=\"", &file.url, "\" alt=\"", &caption.replace(r#"""#, """).replace("<br>", ""), "\"/>"].concat()
|
||||
}
|
||||
Block::delimiter {} => "<div style=\"inline-size: 100%; block-size: 1px; background: var(--color-text)\"></div>".to_string(),
|
||||
|
||||
|
|
Loading…
Reference in New Issue