Liking cljdoc? Tell your friends :D

markdown.transformers


*formatter*clj/s


autoemail-transformerclj/s

(autoemail-transformer text state)

autourl-transformerclj/s

(autourl-transformer text {:keys [code frozen-strings] :as state})

blockquote-1clj/s

(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.
raw docstring

blockquote-2clj/s

(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.
raw docstring

brclj/s

(br text {:keys [code lists] :as state})

clear-line-stateclj/s

(clear-line-state text state)

close-paragraphclj/s

(close-paragraph text {:keys [next-line paragraph] :as state})

codeclj/s

(code text {:keys [eof lists code codeblock paragraph] :as state})

codeblockclj/s

(codeblock text
           {:keys [codeblock codeblock-end indented-code next-line lists]
            :as state})

empty-lineclj/s

(empty-line text {:keys [code codeblock] :as state})

flatten-metadataclj/s

(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.
raw docstring

(footer footnotes)

h1?clj/s

(h1? text)

h2?clj/s

(h2? text)

headingclj/s

(heading text {:keys [buf next-line code codeblock heading-anchors] :as state})

heading?clj/s

(heading? text type)

hrclj/s

(hr text state)

open-paragraphclj/s

(open-paragraph text
                {:keys [eof heading inline-heading temp hr code lists blockquote
                        paragraph last-line-empty?]
                 :as state})

paragraphclj/s

(paragraph text state)

paragraph-textclj/s

(paragraph-text last-line-empty? text)

parse-edn-metadata-headersclj/s

(parse-edn-metadata-headers lines-seq)

parse-metadata-headersclj/s

(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.
raw docstring

parse-metadata-lineclj/s

(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.
raw docstring

parse-wiki-metadata-headersclj/s

(parse-wiki-metadata-headers lines-seq)

parse-yaml-metadata-headersclj/s

(parse-yaml-metadata-headers lines-seq)

set-line-stateclj/s

(set-line-state text {:keys [inline-heading] :as state})

superscriptclj/s

(superscript text state)

transformer-vectorclj/s

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close