markdocx 6.0.0__tar.gz → 7.0.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: markdocx
3
- Version: 6.0.0
3
+ Version: 7.0.0
4
4
  Summary: Convert AI-generated Markdown textbooks to polished DOCX with native math equations and syntax-highlighted code
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "markdocx"
3
- version = "6.0.0"
3
+ version = "7.0.0"
4
4
  description = "Convert AI-generated Markdown textbooks to polished DOCX with native math equations and syntax-highlighted code"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -7,5 +7,5 @@ with native math equations and syntax-highlighted code.
7
7
 
8
8
  from markdocx.core import convert_file, convert_directory
9
9
 
10
- __version__ = "6.0.0"
10
+ __version__ = "7.0.0"
11
11
  __all__ = ["convert_file", "convert_directory"]
@@ -774,16 +774,16 @@ def _render_workflow(code: str):
774
774
  cols_per_row = min(cols_per_row, 4) # cap at 4
775
775
 
776
776
  max_chars_per_line = 16
777
- box_w = max(3.0, min(4.5, max_text_len * 0.16 + 1.5))
778
- box_h = 1.2
779
- fontsize_normal = 13
780
- fontsize_decision = 12
777
+ box_w = max(3.2, min(5.0, max_text_len * 0.18 + 1.5))
778
+ box_h = 1.4
779
+ fontsize_normal = 16
780
+ fontsize_decision = 15
781
781
  spacing_x = box_w + 1.5 # horizontal gap between boxes
782
- spacing_y = 2.5 # vertical gap between rows
782
+ spacing_y = 3.0 # vertical gap between rows
783
783
 
784
784
  num_rows = (n + cols_per_row - 1) // cols_per_row
785
- fig_w = max(8, cols_per_row * spacing_x + 2.0)
786
- fig_h = max(4, num_rows * spacing_y + 2.5)
785
+ fig_w = max(10, cols_per_row * spacing_x + 2.5)
786
+ fig_h = max(5, num_rows * spacing_y + 3.0)
787
787
 
788
788
  fig, ax = plt.subplots(figsize=(fig_w, fig_h))
789
789
  ax.axis("off")
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