Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NoEscapeCodeBlockRenderer ¶ added in v1.0.3
NoEscapeCodeBlockRenderer is a renderer.NodeRenderer implementation that renders code blocks without escaping HTML special characters.
This is needed in lintian-ssg because the tag description are not really Markdown conformant. They are over-escaped inside code blocks, which means that another pass of escaping will not produce the expected result.
Specifically, Lintian tags explanation have had their underscores (_) replaced by _ in lintian#d590cbf22, as well as some other special chars, apparently to fix the HTML output. Escaping them once more, as the default CodeBlock renderer would do it, would result in _ being displayed in the code block instead of the expected underscore (_).
This renderer could be removed once the tag descriptions are fixed to use conformant Markdown.
func NewNoEscapeCodeBlockRenderer ¶ added in v1.0.3
func NewNoEscapeCodeBlockRenderer() *NoEscapeCodeBlockRenderer
NewNoEscapeCodeBlockRenderer returns a new NoEscapeCodeBlockRenderer.
func (*NoEscapeCodeBlockRenderer) RegisterFuncs ¶ added in v1.0.3
func (r *NoEscapeCodeBlockRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.