From ff7e09098a797483092536c22b7442f39bf6ab36 Mon Sep 17 00:00:00 2001 From: matthiasmiller Date: Mon, 25 Feb 2019 21:12:01 -0700 Subject: [PATCH 1/3] Convert tags. --- htmlark.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htmlark.py b/htmlark.py index 02c2918..9ddfd08 100755 --- a/htmlark.py +++ b/htmlark.py @@ -101,7 +101,8 @@ def make_data_uri(mimetype: str, data: bytes) -> str: def convert_page(page_path: str, parser: str='auto', callback: Callable[[str, str, str], None]=lambda *_: None, ignore_errors: bool=False, ignore_images: bool=False, - ignore_css: bool=False, ignore_js: bool=False) -> str: + ignore_css: bool=False, ignore_js: bool=False, + ignore_source: bool=False) -> str: """Take an HTML file or URL and outputs new HTML with resources as data URIs. Parameters: @@ -120,6 +121,8 @@ def convert_page(page_path: str, parser: str='auto', Default: ``False`` ignore_js (bool): If ``True`` do not process ``