Ajout de conclusions.lua

This commit is contained in:
Bastien Dumont
2024-05-24 13:41:54 +02:00
parent 2f93c19908
commit 02e7a6fef1
4 changed files with 198 additions and 0 deletions

20
conclusions/README.md Normal file
View File

@ -0,0 +1,20 @@
# Typographically distinguish conclusions from the surrounding text
`conclusions` is a Lua filter for Pandoc
that inserts blank spaces or headers before the conclusions.
Conclusions must be wrapped in a div with a class `.ccl` or `.conclusion`
and a `level` attribute corresponding to the level of the section to be closed.
All configuration options have to be set in the YAML metadata block
under the `conclusions` configuration variable:
* Headers will be inserted before conclusions
of level `innermost-level-header` or less.
* The title of these headers can be set with the variable
`ccl-explicit-titles` (a list of Markdown chunks).
* A vertical space will be inserted before conclusions
of level higher than `innermost-level-header`
down to `innermost-level-space`.
An example can be found in `test.md`.