Summary
Parses markdown content and renders it to HTML.
- Assembly
- Wyam
.Markdown .dll - Namespace
- Wyam
.Markdown - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["Markdown"]
class Type type-node
Syntax
public class Markdown : IModule
Remarks
Parses markdown content in each input document and outputs documents with rendered HTML content.
Note that
@
(at) symbols will be automatically HTML escaped for better compatibility with downstream
Razor modules. If you want to include a raw @
symbol when EscapeAt()
is true
, use
\@
. Use the EscapeAt()
fluent method to modify this behavior.
Constructors
Name | Summary |
---|---|
Markdown |
Processes Markdown in the content of the document. |
Markdown |
Processes Markdown in the metadata of the document. The rendered HTML will be placed |
Fields
Name | Constant Value | Summary |
---|---|---|
DefaultConfiguration | common |
The default Markdown configuration.
static
|
Methods
Name | Value | Summary |
---|---|---|
EscapeAt |
Markdown |
Specifies whether the
@ symbol should be escaped (the default is true ).
This is important if the Markdown documents are going to be passed to the Razor module,
otherwise the Razor processor will interpret the unescaped @ symbols as code
directives.
If you want to include a raw @ symbol when EscapeAt() is true , use \@ .
|
Execute |
IEnumerable |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|
PrependLinkRoot |
Markdown |
Specifies if the
Wyam.Common.Meta.Keys.LinkRoot setting must be used to rewrite root-relative links when rendering markdown.
By default, root-relative links, which are links starting with a '/' are left untouched.
When setting this value to true , the Wyam.Common.Meta.Keys.LinkRoot setting value is added before the link.
|
UseConfiguration |
Markdown |
Includes a set of extensions defined as a string, e.g., "pipetables", "citations",
"mathematics", or "abbreviations". Separate different extensions with a '+'.
|
UseExtension |
Markdown |
Includes a custom extension in the markdown processing given by a class implementing
the IMarkdownExtension interface.
|
UseExtension |
Markdown |
Includes a custom extension in the markdown processing given by a object implementing
the IMarkdownExtension interface.
|
UseExtensions |
Markdown |
Includes a set of useful advanced extensions, e.g., citations, footers, footnotes, math,
grid-tables, pipe-tables, and tasks, in the Markdown processing pipeline.
|
UseExtensions |
Markdown |
Includes multiple custom extension in the markdown processing given by classes implementing
the
Markdig.IMarkdownExtension interface.
|