Disable Element
This example disables Header elements. That is, both Atx Header and Setext Header elements.
You can use the same approach for other elements types. This includes inline element types. For example, to disable Image elements you should override inlineImage
.
Note that to disable all headers you should also disable support for HTML. You can do that by setting the MarkupEscaped
option to true
.
Change Element Markup
This example prepends a base path to the src
of Image elements.
You can use the same approach for other element types.
Add Inline Element
This example adds a ColoredText element. You can find a description of this element at https://github.com/erusev/parsedown/issues/262.
You can use the same approach for other element types.