XsltMarkdownTools Class

Namespace
Kampute.DocToolkit.Xslt
Assembly
  • Kampute.DocToolkit.dll

Definition

Provides extension methods to assist in XSLT transformations for Markdown content.
public class XsltMarkdownTools
Inheritance

Remarks

This class provides utilities for handling Markdown syntax within XSLT transformations. It helps with properly escaping special Markdown characters and managing code blocks.

To use these extensions in an XSLT stylesheet, include the namespace declaration:

<xsl:stylesheet xmlns:md="http://kampute.com/doc-tools/transform/markdown">
Then call the methods using the namespace prefix:
<xsl:value-of select="md:Escape(text())" />

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Constructors

XsltMarkdownTools()Initializes a new instance of the XsltMarkdownTools class.

Fields

NamespaceUriThe namespace URI for the Markdown extension methods.

Methods

Escape(string)Escapes Markdown special characters in the specified text.
EscapeInline(string)Escapes Markdown special characters in the specified text, excluding line markers.
FenceMarker(string)Retrieves the fence marker for a code block with the specified content.