process_block_elements

Function process_block_elements 

Source
pub fn process_block_elements(content: &str) -> String
Expand description

Process block elements in markdown content.

This function processes block elements including admonitions, figures, and definition lists while being code-block aware to avoid processing inside code fences.

§Arguments

  • content - The markdown content to process

§Returns

The processed markdown with block elements converted to HTML

§Panics

Panics if a code fence marker line is empty (which should not occur in valid markdown).