Liking cljdoc? Tell your friends :D

markdown.transformers


*formatter*clj/s

source

autoemail-transformerclj/s

(autoemail-transformer text state)
source

autourl-transformerclj/s

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

blockquote-1clj/s

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

brclj/s

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

clear-line-stateclj/s

(clear-line-state text state)
source

close-paragraphclj/s

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

codeclj/s

(code text
      {:keys [eof indent-code-end next-line lists code codeblock paragraph]
       :as state})
source

codeblockclj/s

(codeblock text
           {:keys [codeblock-no-escape? codeblock-buf codeblock-lang
                   codeblock-callback codeblock codeblock-end indented-code
                   next-line lists]
            :as state})
source

empty-lineclj/s

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

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.
sourceraw docstring

(footer footnotes)
source

h1?clj/s

(h1? text)
source

h2?clj/s

(h2? text)
source

headingclj/s

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

heading?clj/s

(heading? text type)
source

hrclj/s

(hr text state)
source

open-paragraphclj/s

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

paragraphclj/s

(paragraph text state)
source

paragraph-textclj/s

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

parse-edn-metadata-headersclj/s

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

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.

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, yaml, and edn formats.
 
Returns the parsed headers number of lines the metadata spans
sourceraw 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.
sourceraw docstring

parse-wiki-metadata-headersclj/s

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

parse-yaml-metadata-headersclj/s

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

set-line-stateclj/s

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

superscriptclj/s

(superscript text state)
source

transformer-vectorclj/s

source

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

× close