ex_doc_simple_markdown v0.3.2 ExDocSimpleMarkdown
A SimpleMarkdown processor for ExDoc.
Provides configurable options for the assets (:assets
),
before_closing_head_tag (:head_tag
), before_closing_body_tag
(:body_tag
) behaviours defined by ExDoc. As well as the option
to enable or disable pretty codeblocks (:pretty_codeblocks
),
manipulate the rules (:rules
), change the renderer (:renderer
), and
specify modules that implement the extensions behaviour (:extensions
).
config :ex_doc_simple_markdown, [
assets: [{ "dist/hello-js.js", "alert('hello');" }],
head_tag: "<script src=\"dist/hello-js.js\"></script>",
body_tag: "<script>alert('goodbye');</script>",
pretty_codeblocks: false,
rules: fn rules ->
# Manipulate the rules
rules
end,
renderer: &MyHTMLRenderer.render/1,
extensions: [
MyCustomExtension
]
]
Note: In order for extensions to perform their init
callback, either
they should be passed to the :markdown_processor_options
option in ex_doc
or an empty list should be provided.