From eeeb5ea7bb66149a2a9901720f9caef25ac6fc09 Mon Sep 17 00:00:00 2001 From: ldm0 Date: Fri, 13 Nov 2026 06:34:46 +0800 Subject: [PATCH] refactor(cli): stop forwarding the unused Markdown frame option --- moli/src/fetch_dump/dom.rs | 6 +----- moli/src/fetch_dump/mod.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/moli/src/fetch_dump/dom.rs b/moli/src/fetch_dump/dom.rs index e83320f8ca..77b442a4c8 100644 --- a/moli/src/fetch_dump/dom.rs +++ b/moli/src/fetch_dump/dom.rs @@ -144,11 +144,7 @@ fn html_serialize_options( } } -pub(super) async fn render_markdown( - page: &mut Page, - strip: StripOptions, - _with_frames: bool, -) -> Result { +pub(super) async fn render_markdown(page: &mut Page, strip: StripOptions) -> Result { page.render_markdown_async(RendererMarkdownOptions { strip: renderer_strip_options(strip), }) diff --git a/moli/src/fetch_dump/mod.rs b/moli/src/fetch_dump/mod.rs index b376f0d3a9..498e87dc4e 100644 --- a/moli/src/fetch_dump/mod.rs +++ b/moli/src/fetch_dump/mod.rs @@ -193,7 +193,7 @@ async fn render_page_dump_with_trace_config_async( .await } DumpFormat::Html => dom::render_html(page, strip, with_base, with_frames).await, - DumpFormat::Markdown => dom::render_markdown(page, strip, with_frames).await, + DumpFormat::Markdown => dom::render_markdown(page, strip).await, DumpFormat::Screenshot | DumpFormat::ScreenshotFull | DumpFormat::Pdf => { bail!("binary dump formats are only supported by the fetch CLI output path") }