(blockquote-1 text {:keys [eof code codeblock lists] :as state})
Check for blockquotes and signal to blockquote-2 function with states blockquote-start and blockquote-end so that tags can be added. This approach enables lists to be included in blockquotes.
Check for blockquotes and signal to blockquote-2 function with states blockquote-start and blockquote-end so that tags can be added. This approach enables lists to be included in blockquotes.
(blockquote-2 text
{:keys [blockquote-start blockquote-end blockquote-paragraph
lists]
:as state})
Check for change in blockquote states and add start or end tags. Closing a blockquote with a list in it is a bit more complex, as the list is not closed until the following blank line.
Check for change in blockquote states and add start or end tags. Closing a blockquote with a list in it is a bit more complex, as the list is not closed until the following blank line.
(codeblock text
{:keys [codeblock codeblock-end indented-code next-line lists]
:as state})
(flatten-metadata metadata)
Given a list of maps which contain a single key/value, flatten them all into a single map with all the leading spaces removed. If an empty list is provided then return nil.
Given a list of maps which contain a single key/value, flatten them all into a single map with all the leading spaces removed. If an empty list is provided then return nil.
(open-paragraph text
{:keys [eof heading inline-heading temp hr code lists blockquote
paragraph last-line-empty?]
:as state})
(parse-metadata-headers lines-seq)
Given a sequence of lines from a markdown document, attempt to parse a metadata header if it exists. Accepts wiki, yaml, and edn formats.
Given a sequence of lines from a markdown document, attempt to parse a metadata header if it exists. Accepts wiki, yaml, and edn formats.
(parse-metadata-line line)
Given a line of metadata header text return either a list containing a parsed and normalizd key and the original text of the value, or if no header is found (this is a continuation or new value from a pervious header key) simply return the text. If a blank or invalid line is found return nil.
Given a line of metadata header text return either a list containing a parsed and normalizd key and the original text of the value, or if no header is found (this is a continuation or new value from a pervious header key) simply return the text. If a blank or invalid line is found return nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close