Skip to content

Commit b782f38

Browse files
committed
Update version
1 parent d05d251 commit b782f38

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Changelog
22

3-
## Unreleased
3+
## v9.0.0 - Unreleased
44

55
- Added support for inserts, deletes, and marks.
66
- Added support for nested lists.
77
- Added support for ordered lists.
88
- Improved support for spans with attributes.
9-
- Improved support for lists.
109

1110
## v8.0.0 - 2025-11-28
1211

gleam.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "jot"
2-
version = "8.0.0"
2+
version = "9.0.0"
33
gleam = ">= 1.5.0"
44
description = "A parser for Djot, a markdown-like language"
55
licences = ["Apache-2.0"]

src/jot.gleam

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub type Container {
5353
)
5454
OrderedList(
5555
layout: ListLayout,
56-
style: OrdinalPunctuation,
56+
punctuation: OrdinalPunctuation,
5757
ordinal: OrdinalStyle,
5858
start: Int,
5959
items: List(List(Container)),
@@ -1911,8 +1911,8 @@ fn parse_list(
19111911
let items = list.reverse(items)
19121912
let container = case style {
19131913
Bullet(bullet_style) -> BulletList(layout:, style: bullet_style, items:)
1914-
Ordered(ordered_style, ordinal) ->
1915-
OrderedList(layout:, style: ordered_style, ordinal:, start:, items:)
1914+
Ordered(punctuation, ordinal) ->
1915+
OrderedList(layout:, punctuation:, ordinal:, start:, items:)
19161916
}
19171917
#(container, in)
19181918
}
@@ -2478,7 +2478,7 @@ fn container_to_html(
24782478
|> close_tag("ul")
24792479
}
24802480

2481-
OrderedList(layout:, style: _, ordinal:, start:, items:) -> {
2481+
OrderedList(layout:, punctuation: _, ordinal:, start:, items:) -> {
24822482
let attrs = case start {
24832483
1 -> dict.new()
24842484
_ -> dict.from_list([#("start", int.to_string(start))])

0 commit comments

Comments
 (0)