You can customize how specific HTML tags are handled using the Register interface on the converter. This allows you to define if a tag is block or inline, whether it should be removed, or if it should use a custom renderer.
Tag Types:
converter.TagTypeRemove: Removes the tag from the output.converter.TagTypeInline: Treats the node as an inline element.converter.TagTypeBlock: Treats the node as a block element.
Pre-built Renderers:
base.RenderAsHTML: Renders the node (including children) as raw HTML.base.RenderAsHTMLWrapper: Renders the node as HTML and its children as Markdown.
Priorities:
converter.PriorityEarly: Used to override default behaviors (e.g., keeping <style> tags).converter.PriorityStandard: The default priority.
conv.Register.TagType("nav", converter.TagTypeRemove, converter.PriorityStandard)
conv.Register.RendererFor("b", converter.TagTypeInline, base.RenderAsHTML, converter.PriorityEarly)
conv.Register.RendererFor("article", converter.TagTypeBlock, base.RenderAsHTMLWrapper, converter.PriorityStandard)