Skip to content

Commit 12833c5

Browse files
fix: ignore cases when creating/using links
1 parent 6d1cce7 commit 12833c5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

globals.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ function _G.print_cap(...)
7070
return ...
7171
end
7272

73-
-- TODO: ignore case
7473
function _G.make_id_from_str(str)
7574
local replace_space = lpeg.S " \t\r\n" ^ 1 / "-"
7675
local p = whitespace ^ 0

test/headings_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe("Detached Modifiers >", function()
2222
eq(
2323
p:match(text),
2424
t.pandoc {
25-
t.heading(1, t.para_seg(), "Heading-Title"),
25+
t.heading(1, t.para_seg(), "heading-title"),
2626
}
2727
)
2828
end)
@@ -34,7 +34,7 @@ I'm not heading
3434
eq(
3535
p:match(text),
3636
t.pandoc {
37-
t.heading(1, t.para_seg(), "Heading"),
37+
t.heading(1, t.para_seg(), "heading"),
3838
t.para { t.para_seg() },
3939
}
4040
)

0 commit comments

Comments
 (0)