Module types

Module types 

Source
Expand description

Type definitions for the Markdown processor.

Contains all the core types used by the processor, including:

  • Configuration options (MarkdownOptions)
  • The main processor struct (MarkdownProcessor)
  • AST transformation traits and implementations

§Examples

use ndg_commonmark::{MarkdownOptions, MarkdownProcessor};

let options = MarkdownOptions {
  gfm: true,
  nixpkgs: true,
  highlight_code: true,
  ..Default::default()
};

let processor = MarkdownProcessor::new(options);

Structs§

MarkdownOptions
Options for configuring the Markdown processor.
MarkdownOptionsBuilder
Builder for constructing MarkdownOptions with method chaining.
MarkdownProcessor
Main Markdown processor.
PromptTransformer
AST transformer for processing command and REPL prompts in inline code blocks.

Enums§

TabStyle
Configuration for handling hard tabs in code blocks.

Traits§

AstTransformer
Trait for AST transformations (e.g., prompt highlighting).