From cfbe3e128d756c1159a7a1d75f26d304ceda4842 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Wed, 19 Jul 2023 15:30:51 +0200 Subject: [PATCH] =?UTF-8?q?=20#13:=20P=C5=99id=C3=A1no=20deprecation=20var?= =?UTF-8?q?ov=C3=A1n=C3=AD=20do=20p=C5=AFvodn=C3=AD=20html=20funkce.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formatitko/html.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/formatitko/html.py b/src/formatitko/html.py index 55d54b7..28e408b 100644 --- a/src/formatitko/html.py +++ b/src/formatitko/html.py @@ -13,8 +13,13 @@ from .util import inlinify from .context import Group from .images import ImageProcessor +import warnings +warnings.warn("The html function has been deprecated, is left only for reference and will be removed in future commits. HTML_generator should be used in its place.", DeprecationWarning) + def html(e: Union[Element, ListContainer], k: KatexClient, i: ImageProcessor, indent_level: int=0, indent_str: str="\t") -> str: - + + warnings.warn("The html function has been deprecated, is left only for reference and will be removed in future commits. HTML_generator should be used in its place.", DeprecationWarning) + # `only` attribute which makes transformed elements appear only in tex # output or html output if hasattr(e, "attributes") and "only" in e.attributes and e.attributes["only"] != "html":