diff options
author | Volpeon <git@volpeon.ink> | 2021-11-23 21:28:02 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-11-23 21:28:02 +0100 |
commit | 212188e391daabe6492f2b49e7e689b9aecb138b (patch) | |
tree | 1b53f8b1077f7f7ae9d82bb412456c198f214911 /filters | |
parent | Remove automatic titlecase algorithm (diff) | |
download | volpeon.ink-212188e391daabe6492f2b49e7e689b9aecb138b.tar.gz volpeon.ink-212188e391daabe6492f2b49e7e689b9aecb138b.tar.bz2 volpeon.ink-212188e391daabe6492f2b49e7e689b9aecb138b.zip |
Update
Diffstat (limited to 'filters')
-rw-r--r-- | filters/macros.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/filters/macros.lua b/filters/macros.lua new file mode 100644 index 0000000..9e9d954 --- /dev/null +++ b/filters/macros.lua | |||
@@ -0,0 +1,8 @@ | |||
1 | function Div(el) | ||
2 | if el.classes:includes("note") then | ||
3 | el.classes = pandoc.List() | ||
4 | el.classes:insert("c-note") | ||
5 | end | ||
6 | |||
7 | return el | ||
8 | end | ||