code.doc.render.structure

containers

containify

added in 3.0

(containify v)(containify v [tag & more])

puts a flat element structure into containers

hierarchy

inclusive

added in 3.0

(inclusive x y)

checks is a section is within another

(inclusive :article :chapter) => true

(inclusive :chapter :section) => true

(inclusive :section :chapter) => false

mapify

added in 3.0

(mapify [head & more])

creates the hierarchical structure for a flat list of elements

mapify-unit

added in 3.0

(mapify-unit x)

helper class for mapify

separate

added in 3.0

(separate f v)(separate f [ele & more] all current)

separates elements into various structures

structure

added in 3.0

(structure v)

creates a structure for the article and its elements