refactor(cli): stop forwarding the unused Markdown frame option

This commit is contained in:
ldm0
2026-11-13 06:34:46 +08:00
parent 5a83f2bd19
commit eeeb5ea7bb
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -144,11 +144,7 @@ fn html_serialize_options(
}
}
pub(super) async fn render_markdown(
page: &mut Page,
strip: StripOptions,
_with_frames: bool,
) -> Result<String> {
pub(super) async fn render_markdown(page: &mut Page, strip: StripOptions) -> Result<String> {
page.render_markdown_async(RendererMarkdownOptions {
strip: renderer_strip_options(strip),
})
+1 -1
View File
@@ -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")
}