MDit 0.0.0.dev63__tar.gz → 0.1.1__tar.gz

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.
Files changed (55) hide show
  1. {mdit-0.0.0.dev63/src/MDit.egg-info → mdit-0.1.1}/PKG-INFO +11 -11
  2. {mdit-0.0.0.dev63 → mdit-0.1.1}/pyproject.toml +10 -10
  3. {mdit-0.0.0.dev63 → mdit-0.1.1/src/MDit.egg-info}/PKG-INFO +11 -11
  4. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/MDit.egg-info/SOURCES.txt +6 -0
  5. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/MDit.egg-info/requires.txt +9 -9
  6. mdit-0.1.1/src/mdit/data/__pycache__/__init__.cpython-312.pyc +0 -0
  7. mdit-0.1.1/src/mdit/data/__pycache__/__init__.cpython-313.pyc +0 -0
  8. mdit-0.1.1/src/mdit/data/__pycache__/file.cpython-312.pyc +0 -0
  9. mdit-0.1.1/src/mdit/data/__pycache__/file.cpython-313.pyc +0 -0
  10. mdit-0.1.1/src/mdit/data/__pycache__/schema.cpython-312.pyc +0 -0
  11. mdit-0.1.1/src/mdit/data/__pycache__/schema.cpython-313.pyc +0 -0
  12. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/element.py +41 -1
  13. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/render.py +1 -0
  14. {mdit-0.0.0.dev63 → mdit-0.1.1}/MANIFEST.in +0 -0
  15. {mdit-0.0.0.dev63 → mdit-0.1.1}/setup.cfg +0 -0
  16. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/MDit.egg-info/dependency_links.txt +0 -0
  17. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/MDit.egg-info/not-zip-safe +0 -0
  18. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/MDit.egg-info/top_level.txt +0 -0
  19. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/__init__.py +0 -0
  20. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/container.py +0 -0
  21. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/__init__.py +0 -0
  22. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/file.py +0 -0
  23. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema/document.yaml +0 -0
  24. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema/element/badge.yaml +0 -0
  25. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema.py +0 -0
  26. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/badge/dynamic.yaml +0 -0
  27. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/create-badges.yaml +0 -0
  28. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/coc_covenant.yaml +0 -0
  29. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/heading.yaml +0 -0
  30. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/highlights.yaml +0 -0
  31. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/line.yaml +0 -0
  32. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/newline.yaml +0 -0
  33. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/paragraph.yaml +0 -0
  34. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/paragraph_style.yaml +0 -0
  35. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/_to_review/spacer.yaml +0 -0
  36. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/badge/params.yaml +0 -0
  37. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/badges.yaml +0 -0
  38. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/element/image.yaml +0 -0
  39. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/html/attr/align.yaml +0 -0
  40. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/html/attr/size.yaml +0 -0
  41. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/html/attrs.yaml +0 -0
  42. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/html-document.yaml +0 -0
  43. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/pepy/badge-params.yaml +0 -0
  44. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/schema_/shields/badge-params.yaml +0 -0
  45. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/data/template/code_of_conduct/contributor_covenant.md +0 -0
  46. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/display.py +0 -0
  47. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/document.py +0 -0
  48. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/generate.py +0 -0
  49. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/parse.py +0 -0
  50. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/protocol.py +0 -0
  51. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/renderable.py +0 -0
  52. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/target/__init__.py +0 -0
  53. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/target/md.py +0 -0
  54. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/target/rich.py +0 -0
  55. {mdit-0.0.0.dev63 → mdit-0.1.1}/src/mdit/template.py +0 -0
@@ -1,9 +1,9 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: MDit
3
- Version: 0.0.0.dev63
3
+ Version: 0.1.1
4
4
  Requires-Python: >=3.10
5
- Requires-Dist: sphinx<9,>=7
6
- Requires-Dist: myst-nb<2,>1
5
+ Requires-Dist: sphinx>=7
6
+ Requires-Dist: myst-nb>=1
7
7
  Requires-Dist: pydata-sphinx-theme
8
8
  Requires-Dist: sphinx-design>=0.6
9
9
  Requires-Dist: sphinx-togglebutton
@@ -22,10 +22,10 @@ Requires-Dist: pygments
22
22
  Requires-Dist: rich>=13.8
23
23
  Requires-Dist: pydantic>=2.9
24
24
  Requires-Dist: referencing>=0.35.1
25
- Requires-Dist: PkgData==0.0.0.dev5
26
- Requires-Dist: PySerials==0.0.0.dev66
27
- Requires-Dist: PyBadger==0.0.0.dev60
28
- Requires-Dist: PyColorIT==0.0.0.dev11
29
- Requires-Dist: ProtocolMan==0.0.0.dev2
30
- Requires-Dist: HTMP==0.0.0.dev5
31
- Requires-Dist: JSONSchemata==0.0.0.dev62
25
+ Requires-Dist: PkgData<0.2,>=0.1
26
+ Requires-Dist: PySerials<0.2,>=0.1
27
+ Requires-Dist: PyBadger<0.2,>=0.1
28
+ Requires-Dist: PyColorIT<0.2,>=0.1
29
+ Requires-Dist: ProtocolMan<0.2,>=0.1
30
+ Requires-Dist: HTMP<0.2,>=0.1
31
+ Requires-Dist: JSONSchemata<0.2,>=0.1
@@ -17,12 +17,12 @@ namespaces = true
17
17
  # ----------------------------------------- Project Metadata -------------------------------------
18
18
  #
19
19
  [project]
20
- version = "0.0.0.dev63"
20
+ version = "0.1.1"
21
21
  name = "MDit"
22
22
  requires-python = ">=3.10"
23
23
  dependencies = [
24
- "sphinx >= 7, < 9",
25
- "myst-nb > 1, < 2",
24
+ "sphinx >= 7",
25
+ "myst-nb >= 1",
26
26
  "pydata-sphinx-theme",
27
27
  "sphinx-design >= 0.6",
28
28
  "sphinx-togglebutton",
@@ -41,11 +41,11 @@ dependencies = [
41
41
  "rich >= 13.8",
42
42
  "pydantic >= 2.9",
43
43
  "referencing >= 0.35.1",
44
- "PkgData == 0.0.0.dev5",
45
- "PySerials == 0.0.0.dev66",
46
- "PyBadger == 0.0.0.dev60",
47
- "PyColorIT == 0.0.0.dev11",
48
- "ProtocolMan == 0.0.0.dev2",
49
- "HTMP == 0.0.0.dev5",
50
- "JSONSchemata == 0.0.0.dev62",
44
+ "PkgData >=0.1,<0.2",
45
+ "PySerials >=0.1,<0.2",
46
+ "PyBadger >=0.1,<0.2",
47
+ "PyColorIT >=0.1,<0.2",
48
+ "ProtocolMan >=0.1,<0.2",
49
+ "HTMP >=0.1,<0.2",
50
+ "JSONSchemata >=0.1,<0.2",
51
51
  ]
@@ -1,9 +1,9 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: MDit
3
- Version: 0.0.0.dev63
3
+ Version: 0.1.1
4
4
  Requires-Python: >=3.10
5
- Requires-Dist: sphinx<9,>=7
6
- Requires-Dist: myst-nb<2,>1
5
+ Requires-Dist: sphinx>=7
6
+ Requires-Dist: myst-nb>=1
7
7
  Requires-Dist: pydata-sphinx-theme
8
8
  Requires-Dist: sphinx-design>=0.6
9
9
  Requires-Dist: sphinx-togglebutton
@@ -22,10 +22,10 @@ Requires-Dist: pygments
22
22
  Requires-Dist: rich>=13.8
23
23
  Requires-Dist: pydantic>=2.9
24
24
  Requires-Dist: referencing>=0.35.1
25
- Requires-Dist: PkgData==0.0.0.dev5
26
- Requires-Dist: PySerials==0.0.0.dev66
27
- Requires-Dist: PyBadger==0.0.0.dev60
28
- Requires-Dist: PyColorIT==0.0.0.dev11
29
- Requires-Dist: ProtocolMan==0.0.0.dev2
30
- Requires-Dist: HTMP==0.0.0.dev5
31
- Requires-Dist: JSONSchemata==0.0.0.dev62
25
+ Requires-Dist: PkgData<0.2,>=0.1
26
+ Requires-Dist: PySerials<0.2,>=0.1
27
+ Requires-Dist: PyBadger<0.2,>=0.1
28
+ Requires-Dist: PyColorIT<0.2,>=0.1
29
+ Requires-Dist: ProtocolMan<0.2,>=0.1
30
+ Requires-Dist: HTMP<0.2,>=0.1
31
+ Requires-Dist: JSONSchemata<0.2,>=0.1
@@ -20,6 +20,12 @@ src/mdit/template.py
20
20
  src/mdit/data/__init__.py
21
21
  src/mdit/data/file.py
22
22
  src/mdit/data/schema.py
23
+ src/mdit/data/__pycache__/__init__.cpython-312.pyc
24
+ src/mdit/data/__pycache__/__init__.cpython-313.pyc
25
+ src/mdit/data/__pycache__/file.cpython-312.pyc
26
+ src/mdit/data/__pycache__/file.cpython-313.pyc
27
+ src/mdit/data/__pycache__/schema.cpython-312.pyc
28
+ src/mdit/data/__pycache__/schema.cpython-313.pyc
23
29
  src/mdit/data/schema/document.yaml
24
30
  src/mdit/data/schema/element/badge.yaml
25
31
  src/mdit/data/schema_/create-badges.yaml
@@ -1,5 +1,5 @@
1
- sphinx<9,>=7
2
- myst-nb<2,>1
1
+ sphinx>=7
2
+ myst-nb>=1
3
3
  pydata-sphinx-theme
4
4
  sphinx-design>=0.6
5
5
  sphinx-togglebutton
@@ -18,10 +18,10 @@ pygments
18
18
  rich>=13.8
19
19
  pydantic>=2.9
20
20
  referencing>=0.35.1
21
- PkgData==0.0.0.dev5
22
- PySerials==0.0.0.dev66
23
- PyBadger==0.0.0.dev60
24
- PyColorIT==0.0.0.dev11
25
- ProtocolMan==0.0.0.dev2
26
- HTMP==0.0.0.dev5
27
- JSONSchemata==0.0.0.dev62
21
+ PkgData<0.2,>=0.1
22
+ PySerials<0.2,>=0.1
23
+ PyBadger<0.2,>=0.1
24
+ PyColorIT<0.2,>=0.1
25
+ ProtocolMan<0.2,>=0.1
26
+ HTMP<0.2,>=0.1
27
+ JSONSchemata<0.2,>=0.1
@@ -400,7 +400,7 @@ class BlockImage(Element):
400
400
 
401
401
  @property
402
402
  def code_fence_count(self) -> int:
403
- return max(self.caption.code_fence_count, 2) + 1
403
+ return max(self.caption.code_fence_count, 2) + 1 if self.caption else 3
404
404
 
405
405
  def _make_img_attrs(self):
406
406
  img_attrs = {
@@ -476,6 +476,10 @@ class BlockQuote(Element):
476
476
  self.attrs_container = attrs_container or {}
477
477
  return
478
478
 
479
+ @property
480
+ def code_fence_count(self) -> int:
481
+ return self.content.code_fence_count
482
+
479
483
  def _source_md(self, target: MDTargetConfig, filters: str | list[str] | None = None) -> str:
480
484
 
481
485
  def make_md_blockquote(lines: list[str]) -> str:
@@ -572,6 +576,10 @@ class Card(Element):
572
576
  self.classes_img_bottom = classes_img_bottom or []
573
577
  return
574
578
 
579
+ @property
580
+ def code_fence_count(self) -> int:
581
+ return max(self.header.code_fence_count, self.body.code_fence_count, self.footer.code_fence_count, 2) + 1
582
+
575
583
  def _source_md(self, target: MDTargetConfig, filters: str | list[str] | None = None) -> str:
576
584
  content = []
577
585
  if self.header:
@@ -906,6 +914,10 @@ class FieldListItem(Element):
906
914
  )
907
915
  return
908
916
 
917
+ @property
918
+ def code_fence_count(self) -> int:
919
+ return self.body.code_fence_count
920
+
909
921
  def _source_md(self, target: MDTargetConfig, filters: str | list[str] | None = None) -> str:
910
922
  title = self.title.source(target=target, filters=filters)
911
923
  body = self.body.source(target=target, filters=filters)
@@ -952,6 +964,10 @@ class FieldList(Element):
952
964
  )
953
965
  return
954
966
 
967
+ @property
968
+ def code_fence_count(self) -> int:
969
+ return self.content.code_fence_count
970
+
955
971
  def _source_md(self, target: MDTargetConfig, filters: str | list[str] | None = None) -> str:
956
972
  content = self.content.source(target=target, filters=filters)
957
973
  if (self.classes or self.name) and target.attrs_block:
@@ -1367,6 +1383,10 @@ class TabSet(Element):
1367
1383
  self.classes = classes or []
1368
1384
  return
1369
1385
 
1386
+ @property
1387
+ def code_fence_count(self) -> int:
1388
+ return max(self.content.code_fence_count, 2) + 1
1389
+
1370
1390
  def _source_md(self, target: MDTargetConfig, filters: str | list[str] | None = None) -> str:
1371
1391
  options = {
1372
1392
  "sync-group": self.sync_group,
@@ -1685,6 +1705,10 @@ class Toggle(Element):
1685
1705
  self.opened = opened
1686
1706
  return
1687
1707
 
1708
+ @property
1709
+ def code_fence_count(self) -> int:
1710
+ return max(self.content.code_fence_count, 2) + 1
1711
+
1688
1712
  def _source_md(self, target: MDTargetConfig, filters: str | list[str] | None = None) -> str:
1689
1713
  if target.directive_toggle:
1690
1714
  return directive(
@@ -1726,6 +1750,10 @@ class OrderedListItem(Element):
1726
1750
  )
1727
1751
  return
1728
1752
 
1753
+ @property
1754
+ def code_fence_count(self) -> int:
1755
+ return self.content.code_fence_count
1756
+
1729
1757
  def _source_rich(self, target: RichTargetConfig, filters: str | list[str] | None = None) -> RenderableType:
1730
1758
  content = self.content.source(target=target, filters=filters)
1731
1759
  return self.config_rich.make(content, start=self.number or 1)
@@ -1790,6 +1818,10 @@ class OrderedList(Element):
1790
1818
  )
1791
1819
  return
1792
1820
 
1821
+ @property
1822
+ def code_fence_count(self) -> int:
1823
+ return self.content.code_fence_count
1824
+
1793
1825
  def append(
1794
1826
  self,
1795
1827
  content: MDContainer | ContainerContentInputType = None,
@@ -1882,6 +1914,10 @@ class UnOrderedListItem(Element):
1882
1914
  )
1883
1915
  return
1884
1916
 
1917
+ @property
1918
+ def code_fence_count(self) -> int:
1919
+ return self.content.code_fence_count
1920
+
1885
1921
  def _source_rich(self, target: RichTargetConfig, filters: str | list[str] | None = None) -> RenderableType:
1886
1922
  content = self.content.source(target=target, filters=filters)
1887
1923
  return self.config_rich.make(content)
@@ -1927,6 +1963,10 @@ class UnOrderedList(Element):
1927
1963
  )
1928
1964
  return
1929
1965
 
1966
+ @property
1967
+ def code_fence_count(self) -> int:
1968
+ return self.content.code_fence_count
1969
+
1930
1970
  def append(
1931
1971
  self,
1932
1972
  content: MDContainer | ContainerContentInputType,
@@ -71,6 +71,7 @@ def get_sphinx_config(
71
71
  "pygments_dark_style": "monokai",
72
72
  },
73
73
  "html_title": "",
74
+ "suppress_warnings": ["app.add_node", "app.add_directive", "app.add_role"],
74
75
  }
75
76
  config_final = _copy.deepcopy(config) or {}
76
77
  _ps.update.recursive_update(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes