obsidian_export::postprocessors

Function softbreaks_to_hardbreaks

Source
pub fn softbreaks_to_hardbreaks(
    _context: &mut Context,
    events: &mut MarkdownEvents<'_>,
) -> PostprocessorResult
Expand description

This postprocessor converts all soft line breaks to hard line breaks. Enabling this mimics Obsidian’s ‘Strict line breaks’ setting.