A collection of helper functions for easier sectioning of markdown documents.
They take care that e.g. control commands for new lines ("\newline"
or "<br>"
)
are correctly positioned by adding "\n"
before and after a structure.
.newPage(delim) .header(level, text) .section(level, text, delim)
delim |
|
---|---|
level |
|
text |
|
Text output via cat
.
.newPage("\\newpage")#> \newpage #>.header(1, "My Header")#> # My Header #>.section(2, "My Section", "<hr>")#> #> #> <hr> #> #> ## My Section #>