diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-01-10 12:19:47 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-01-10 12:19:47 -0500 |
| commit | a36f149d0837f4424aeda1a1853f08c27aeafa44 (patch) | |
| tree | 37ae51bed0046da7e012b3901ea6bfbd648c843d /.pandoc/bold-code.lua | |
| parent | ce49f93da58d007c0a52ee82e2421adfe06012f9 (diff) | |
Add pandoc filter
Diffstat (limited to '.pandoc/bold-code.lua')
| -rw-r--r-- | .pandoc/bold-code.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.pandoc/bold-code.lua b/.pandoc/bold-code.lua new file mode 100644 index 00000000..02ed1891 --- /dev/null +++ b/.pandoc/bold-code.lua @@ -0,0 +1,9 @@ +-- Convert code to bold +function Code(el) + return pandoc.Strong(el.text) +end + +-- Convert code blocks to bold and indented +function CodeBlock(el) + return pandoc.BlockQuote({pandoc.Para(pandoc.Strong(el.text))}) +end |
