Skip to content

Commit f920799

Browse files
author
yggverse
committed
trim ending separators captured by regex, add native margin
1 parent c3d3bce commit f920799

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/app/browser/window/tab/item/page/content/text/markdown/tags

src/app/browser/window/tab/item/page/content/text/markdown/tags/code.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl Code {
6969
id,
7070
Entry {
7171
alt: alt(cap["alt"].into()).map(|s| s.into()),
72-
data: cap["data"].into(),
72+
data: cap["data"].trim_end().into(),
7373
},
7474
)
7575
.is_none()
@@ -200,6 +200,7 @@ impl Code {
200200
.wrap_mode(WrapMode::None)
201201
.build(),
202202
)
203+
.margin_bottom(MARGIN)
203204
.margin_end(MARGIN)
204205
.margin_start(MARGIN)
205206
.margin_top(MARGIN)

0 commit comments

Comments
 (0)