markdown-to-confluence 0.4.8__py3-none-any.whl → 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/METADATA +10 -11
- markdown_to_confluence-0.5.0.dist-info/RECORD +35 -0
- md2conf/__init__.py +1 -1
- md2conf/__main__.py +13 -13
- md2conf/api.py +55 -71
- md2conf/collection.py +2 -2
- md2conf/converter.py +22 -22
- md2conf/domain.py +3 -3
- md2conf/drawio.py +1 -1
- md2conf/environment.py +22 -22
- md2conf/latex.py +9 -9
- md2conf/local.py +5 -6
- md2conf/markdown.py +7 -7
- md2conf/matcher.py +5 -5
- md2conf/mermaid.py +3 -3
- md2conf/metadata.py +1 -2
- md2conf/processor.py +12 -12
- md2conf/publisher.py +1 -2
- md2conf/scanner.py +33 -41
- md2conf/serializer.py +52 -0
- md2conf/toc.py +2 -3
- md2conf/xml.py +4 -6
- markdown_to_confluence-0.4.8.dist-info/RECORD +0 -34
- {markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/WHEEL +0 -0
- {markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/entry_points.txt +0 -0
- {markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/licenses/LICENSE +0 -0
- {markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/top_level.txt +0 -0
- {markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/zip-safe +0 -0
md2conf/xml.py
CHANGED
|
@@ -6,7 +6,7 @@ Copyright 2022-2025, Levente Hunyadi
|
|
|
6
6
|
:see: https://github.com/hunyadi/md2conf
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
-
from typing import Iterable
|
|
9
|
+
from typing import Iterable
|
|
10
10
|
|
|
11
11
|
import lxml.etree as ET
|
|
12
12
|
|
|
@@ -39,7 +39,7 @@ class ElementComparator:
|
|
|
39
39
|
skip_attributes: set[str]
|
|
40
40
|
skip_elements: set[str]
|
|
41
41
|
|
|
42
|
-
def __init__(self, *, skip_attributes:
|
|
42
|
+
def __init__(self, *, skip_attributes: Iterable[str] | None = None, skip_elements: Iterable[str] | None = None):
|
|
43
43
|
"""
|
|
44
44
|
Initializes a new element tree comparator.
|
|
45
45
|
|
|
@@ -81,12 +81,10 @@ class ElementComparator:
|
|
|
81
81
|
# compare children recursively
|
|
82
82
|
if len(e1) != len(e2):
|
|
83
83
|
return False
|
|
84
|
-
return all(self.is_equal(c1, c2) for c1, c2 in zip(e1, e2))
|
|
84
|
+
return all(self.is_equal(c1, c2) for c1, c2 in zip(e1, e2, strict=True))
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
def is_xml_equal(
|
|
88
|
-
tree1: ElementType, tree2: ElementType, *, skip_attributes: Optional[Iterable[str]] = None, skip_elements: Optional[Iterable[str]] = None
|
|
89
|
-
) -> bool:
|
|
87
|
+
def is_xml_equal(tree1: ElementType, tree2: ElementType, *, skip_attributes: Iterable[str] | None = None, skip_elements: Iterable[str] | None = None) -> bool:
|
|
90
88
|
"""
|
|
91
89
|
Compare two XML documents for equivalence, ignoring leading/trailing whitespace differences and attribute definition order.
|
|
92
90
|
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
markdown_to_confluence-0.4.8.dist-info/licenses/LICENSE,sha256=56L-Y0dyZwyVlINRJRz3PNw-ka-oLVaAq-7d8zo6qlc,1077
|
|
2
|
-
md2conf/__init__.py,sha256=TJ8zRe5RlBILNw8pD-Rt3pUrUYCUfh8o4qSdv3ulu2U,402
|
|
3
|
-
md2conf/__main__.py,sha256=pp3Zi60gmhXRqK0uoR4lZMVLlOO8ryAmk8UMPiI-Cew,11527
|
|
4
|
-
md2conf/api.py,sha256=uEPMcR4B-07MMFM96m92z7Znnj7pzhkLLAGcOIseERY,41398
|
|
5
|
-
md2conf/collection.py,sha256=EobgMRJgkYloWlY03NZJ52MRC_SGLpTVCHkltDbQyt0,837
|
|
6
|
-
md2conf/converter.py,sha256=WMtwfnU50-y-LyENbaxKI7Br9gmoLxBCIZIvpeXxli8,69532
|
|
7
|
-
md2conf/csf.py,sha256=rugs3qC2aJQCJSTczeBw9WhqSZZtMq14LjwT0V1b6Hc,6476
|
|
8
|
-
md2conf/domain.py,sha256=rN6QSuoP3JMj-WE8BAggHqHEO8nJbnQDf0b0uhStNZk,2221
|
|
9
|
-
md2conf/drawio.py,sha256=0FoCl0BWxyxO-KLPlDZPyYvSTRpgu9Z6yFKl10TGGMI,8594
|
|
10
|
-
md2conf/emoticon.py,sha256=P2L5oQvnRXeVifJQ3sJ2Ck-6ptbxumq2vsT-rM0W0Ms,484
|
|
11
|
-
md2conf/entities.dtd,sha256=M6NzqL5N7dPs_eUA_6sDsiSLzDaAacrx9LdttiufvYU,30215
|
|
12
|
-
md2conf/environment.py,sha256=RC1jY_TKVbOv2bJxXn27Fj4fNWzyoNUQt6ltgUyVQAQ,3987
|
|
13
|
-
md2conf/extra.py,sha256=VuMxuOnnC2Qwy6y52ukIxsaYhrZArRqMmRHRE4QZl8g,687
|
|
14
|
-
md2conf/latex.py,sha256=i5C_ZqsBG_Df1bNoMJpAKpiYMFcMEn5aoAv6bdSsE1k,7674
|
|
15
|
-
md2conf/local.py,sha256=mvp2kA_eo6JUQ_rlM7zDdEFgBPVxMr3VKP_X1nsLjHE,3747
|
|
16
|
-
md2conf/markdown.py,sha256=czabU17tUfhSX1JQGiI_TrMrTmtoVThOwFu_To_Oi_w,3176
|
|
17
|
-
md2conf/matcher.py,sha256=8g2yiKXfEkYJPIvKD2cswTG9BxFY24BtVcPgKaEVAs8,6812
|
|
18
|
-
md2conf/mermaid.py,sha256=hGrITJVvhHprjQVoezQ1nQeo6a_lqNihF8L-oJ4t5rc,2633
|
|
19
|
-
md2conf/metadata.py,sha256=LzZM-oPNnzCULmLhF516tPlV5zZBknccwMHt8Nan-xg,1007
|
|
20
|
-
md2conf/processor.py,sha256=G1icOxYsPAOjK4fnVdA-vwTsRiZMBpEAmMPOwfOebtQ,9733
|
|
21
|
-
md2conf/publisher.py,sha256=V4TzmrJ5LAv61EPpDYUGWv_6KHb-BcDjtYdByNt6su8,8665
|
|
22
|
-
md2conf/puppeteer-config.json,sha256=-dMTAN_7kNTGbDlfXzApl0KJpAWna9YKZdwMKbpOb60,159
|
|
23
|
-
md2conf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
md2conf/scanner.py,sha256=O4iOgmSqTe1CYgmdaiF1QyAESzA4SRNEKVY9gOodXDY,7035
|
|
25
|
-
md2conf/text.py,sha256=fHOrUaPXAjE4iRhHqFq-CiI-knpo4wvyHCWp0crewqA,1736
|
|
26
|
-
md2conf/toc.py,sha256=hpqqDbFgNJg5-ul8qWjOglI3Am0sbwR-TLwGN5G9Qo0,2447
|
|
27
|
-
md2conf/uri.py,sha256=KbLBdRFtZTQTZd8b4j0LtE8Pb68Ly0WkemF4iW-EAB4,1158
|
|
28
|
-
md2conf/xml.py,sha256=SpFfcfZm1BPbB4zZM2UC1K-GkzHRhFiotiPMPt5_XPI,5541
|
|
29
|
-
markdown_to_confluence-0.4.8.dist-info/METADATA,sha256=9qSXRbEN4QV6hAhzdIQAW_Bj8iW__Go_vhqBbVFrAJE,36555
|
|
30
|
-
markdown_to_confluence-0.4.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
-
markdown_to_confluence-0.4.8.dist-info/entry_points.txt,sha256=F1zxa1wtEObtbHS-qp46330WVFLHdMnV2wQ-ZorRmX0,50
|
|
32
|
-
markdown_to_confluence-0.4.8.dist-info/top_level.txt,sha256=_FJfl_kHrHNidyjUOuS01ngu_jDsfc-ZjSocNRJnTzU,8
|
|
33
|
-
markdown_to_confluence-0.4.8.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
34
|
-
markdown_to_confluence-0.4.8.dist-info/RECORD,,
|
|
File without changes
|
{markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{markdown_to_confluence-0.4.8.dist-info → markdown_to_confluence-0.5.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|