mirror of
https://github.com/lexmount/moli.git
synced 2026-11-13 08:08:10 +00:00
refactor(cli): stop forwarding the unused Markdown frame option
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user