(autoemail-transformer text state)
(autourl-transformer text {:keys [code frozen-strings] :as state})
(blockquote-1 text {:keys [eof code codeblock] :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.
(br text {:keys [code lists] :as state})
(clear-line-state text state)
(close-paragraph text {:keys [next-line paragraph] :as state})
(code text
{:keys [eof indent-code-end next-line lists code codeblock paragraph]
:as state})
(codeblock text
{:keys [codeblock-no-escape? codeblock-buf codeblock-lang
codeblock-callback codeblock codeblock-end indented-code
next-line lists]
:as state})
(empty-line text {:keys [code codeblock] :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.
(footer footnotes)
(h1? text)
(h2? text)
(heading text {:keys [buf next-line code codeblock heading-anchors] :as state})
(heading? text type)
(hr text state)
(open-paragraph text
{:keys [eof heading inline-heading temp hr code lists blockquote
paragraph last-line-empty?]
:as state})
(paragraph text state)
(paragraph-text last-line-empty? text)
(parse-edn-metadata-headers lines-seq)
(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 and edn formats.
Returns the parsed headers number of lines the metadata spans
Given a sequence of lines from a markdown document, attempt to parse a metadata header if it exists. Accepts wiki and edn formats. Returns the parsed headers number of lines the metadata spans
(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.
(parse-wiki-metadata-headers lines-seq)
(set-line-state text {:keys [inline-heading] :as state})
(superscript text state)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close