(belongs-to-list-item? current previous)
True if current belongs to LI, assuming:
True if current belongs to LI, assuming: 1. current is the line in question 2. previous is a vector of lines already belonging to LI False otherwise.
(fenced-code-block-pair? x y)
True if lines x and y are matching code block fences, false otherwise.
True if lines x and y are matching code block fences, false otherwise.
(html-block-pair? line1 line2)
Returns true if line1 is the beginning of an HTML block and line2 is the end of an HTML block of the same variant, false otherwise.
Returns true if line1 is the beginning of an HTML block and line2 is the end of an HTML block of the same variant, false otherwise.
(indented-for-list-item? line origin)
Assuming origin is the first line a list item: True if line belongs to the list item, false otherwise. Nil if the assumption doesn't hold.
Assuming origin is the first line a list item: True if line belongs to the list item, false otherwise. Nil if the assumption doesn't hold.
(level-1-setext-underline? line)
True if line is a setext underline producing a <h1>, false otherwise.
True if line is a setext underline producing a <h1>, false otherwise.
(list-item-pad origin)
A string consisting of as many spaces as the sum of the number of characters included in the:
A string consisting of as many spaces as the sum of the number of characters included in the: * indentation * marker * spacing between marker and content of origin, assuming origin is the first line of a line item. Expands tabs. Nil if the assumption doesn't hold.
(paragraph-continuation-text? current previous)
True if all of the following apply:
True if all of the following apply: 1. current is paragraph continuation text 2. previous is a collection of lines preceding current 3. previous comprise a paragraph False otherwise. The paragraph may be nested in an arbitrarily deep series of containers.
(strip-containers line)
Recursively extracts content from list item and blockquote lines until only leaf content remains.
Recursively extracts content from list item and blockquote lines until only leaf content remains.
(unindent line n)
Decreases indentation of line by n columns.
Decreases indentation of line by n columns.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close