Package atessera.markdown.cust


package atessera.markdown.cust
Provides customized inline parsing infrastructure for the Markdown processing pipeline.

This package contains modifications to commonmark-java's built-in inline parsing components, enabling more flexible delimiter processing and finer control over which inline constructs are recognized.

Key classes

InlineParserImpl
A customized version of commonmark-java's InlineParserImpl that accepts additional DelimiterProcessor instances, custom InlineContentParserFactory list, and a flag to control whether HTML inline constructs (EntityInlineParser, HtmlInlineParser) are recognized. Used by both LatexTarget and HtmlTarget to ensure consistent inline parsing behaviour.
StaggeredDelimiterProcessor
A composite DelimiterProcessor that dispatches delimiter runs to one of several child processors based on the length of the run. This allows multiple processors to share the same delimiter character (e.g. *) with different minimum lengths. Child processors must have distinct minimum lengths.

Usage

These classes are internal to the Markdown pipeline and are typically not instantiated directly by users. They are wired into LatexTarget and HtmlTarget via the Parser.Builder:


 p.inlineParserFactory(c -> new InlineParserImpl(c, allowHtmlInlines));
 
See Also: