From 36a39df463a004af8f675a56f9e336e4f9547022 Mon Sep 17 00:00:00 2001 From: digitalMoksha Date: Sun, 18 Aug 2024 18:09:17 -0500 Subject: [PATCH] Add experimental-inline-sourcepos to cli options --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 22df9deb..41e1a3af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -141,6 +141,10 @@ struct Cli { #[arg(long)] sourcepos: bool, + /// Include inline sourcepos in HTML output, which is known to have issues. + #[arg(long)] + experimental_inline_sourcepos: bool, + /// Ignore setext headers #[arg(long)] ignore_setext: bool, @@ -287,6 +291,7 @@ fn main() -> Result<(), Box> { .escape(cli.escape) .list_style(cli.list_style.into()) .sourcepos(cli.sourcepos) + .experimental_inline_sourcepos(cli.experimental_inline_sourcepos) .escaped_char_spans(cli.escaped_char_spans) .ignore_setext(cli.ignore_setext) .ignore_empty_links(cli.ignore_empty_links)