Skip to content

Commit c484cab

Browse files
committed
Changelog
1 parent 1eb2bb1 commit c484cab

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [Unreleased]
4+
5+
- Fixed inline element with attributes is inside a bulleted list not being processed correctly.
6+
37
## v10.0.0 - 2026-01-19
48

59
- Added support for symbols.
@@ -10,7 +14,6 @@
1014
- Added support for nested lists.
1115
- Added support for ordered lists.
1216
- Improved support for spans with attributes.
13-
1417
## v8.0.0 - 2025-11-28
1518

1619
- Added support for inline attributes on links and images.

src/jot.gleam

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,18 @@ fn parse_attributes_id_or_class(
984984
}
985985
}
986986

987+
fn parse_attributes_end(
988+
in: String,
989+
attrs: Dict(String, String),
990+
) -> Option(#(Dict(String, String), String)) {
991+
case in {
992+
"" -> Some(#(attrs, ""))
993+
"\n" <> in -> Some(#(attrs, in))
994+
" " <> in -> parse_attributes_end(in, attrs)
995+
_ -> None
996+
}
997+
}
998+
987999
fn parse_block_quote(
9881000
in: String,
9891001
refs: Refs,

0 commit comments

Comments
 (0)