diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-23 15:21:46 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-23 15:21:46 -0700 |
| commit | aa1faea83ccb60ae5c1918849dd62e377b7c7263 (patch) | |
| tree | 9bd2bdfc6e5171fea571af1e29ccc0a2d1487fdf /.pandoc/bold-code.lua | |
| parent | 315aedc7cb9fbf642c9c3e5b076fc87c5859e847 (diff) | |
Added pandoc lua filter to make code literals work better with manpages.
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 0000000..02ed189 --- /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 |
