catalog.layout.common
Layout functionality that is common across all output formats. Such as translation strings, formatting of dates or braille signatures.
md-extract-headings
(md-extract-headings markdown)
Return a coll of headings from a markdown string
path-to-number
(path-to-number tree)
Return a map of path to number vector mapping. This can be used to look up a section number for a given path.
periodify
(periodify s)
Add a period to the end of s
if it is not nil and doesn’t end in punctuation. If s
is nil return an empty string.
section-numbers
(section-numbers numbers)
Format a seq of numbers into a human readable section number
wrap
(wrap s)
(wrap s prefix)
(wrap s prefix postfix)
(wrap s prefix postfix period?)
Adds a period to s
and wrap it in prefix
and postfix
. If s
is a sequence the contained strings are joined with “, ” as a separator