Skip to content

Commit b6ae94d

Browse files
committed
use consistent names between lua and js. Closes #4844
1 parent 0022249 commit b6ae94d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/resources/extensions/quarto/kbd/kbd.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
return {
33
['kbd'] = function(args, kwargs, meta)
44
local function osname(v)
5-
if v == "win" then return "Windows" end
6-
if v == "mac" then return "Mac" end
7-
if v == "linux" then return "Linux" end
5+
if v == "win" then return "windows" end
6+
if v == "mac" then return "mac" end
7+
if v == "linux" then return "linux" end
88
end
99
if quarto.doc.is_format("html:js") then
1010
quarto.doc.add_html_dependency({

src/resources/extensions/quarto/kbd/resources/kbd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
};
88
} else if (userAgent.includes("Windows")) {
99
return {
10-
name: "win",
10+
name: "windows",
1111
};
1212
} else {
1313
return {

0 commit comments

Comments
 (0)