kivikakk / comrak

CommonMark + GFM compatible Markdown parser and renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mark `ComrakParseOptions` and similar `#[non_exhaustive]`

tgross35 opened this issue · comments

This will allow for adding more configuration fields in the future without breaking compatibility (it seems like some issues may be requesting this). However, this itself would be a breaking change; users would need to change from e.g.

let opts = ComrakParseOptions {
    smart: true
    default_info_string: None,
    relaxed_tasklist_matching: true,
}

to:

let opts = ComrakParseOptions {
    smart: true
    default_info_string: None,
    relaxed_tasklist_matching: true,
    ..Default::default()
}

Ah, this is actually handled in #305