25 lines
405 B
Lua
25 lines
405 B
Lua
dofile(core.snippets)
|
|
|
|
return {
|
|
-- header level 1, usually this has the same name as the file
|
|
s("h1", {
|
|
t("* "),
|
|
c(1, {
|
|
f(file_name, {}),
|
|
i(1, "header")
|
|
})
|
|
}),
|
|
|
|
-- link snippet
|
|
s("link", {
|
|
t("{"),
|
|
c(1, {
|
|
sn(nil, { t({":$/"}), i(1, "path to file"), t(":") }),
|
|
i(1, "https://example.com")
|
|
}),
|
|
t("}["),
|
|
i(2, "description"),
|
|
t("]")
|
|
})
|
|
}
|