feat: 修改output_path

This commit is contained in:
莘权 马 2024-06-05 12:11:45 +08:00
parent 04e72c0597
commit 4359abd84a
8 changed files with 83 additions and 73 deletions

View file

@ -945,5 +945,7 @@ def get_markdown_code_block_type(filename: str) -> str:
def to_markdown_code_block(val: str, type_: str = "") -> str:
if not val:
return val or ""
val = val.replace("```", "\\`\\`\\`")
return f"\n```{type_}\n{val}\n```\n"

View file

@ -72,7 +72,6 @@ class File:
class MemoryFileSystem(_MemoryFileSystem):
@classmethod
def _strip_protocol(cls, path):
return super()._strip_protocol(str(path))

View file

@ -4,11 +4,10 @@ from __future__ import annotations
from typing import Generator, Optional
from urllib.parse import urljoin, urlparse
import htmlmin
from bs4 import BeautifulSoup
from pydantic import BaseModel, PrivateAttr
import htmlmin
class WebPage(BaseModel):
inner_text: str