We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3ba46 commit 12cae88Copy full SHA for 12cae88
src/raglite/_markdown.py
@@ -70,7 +70,7 @@ def extract_font_size(span: dict[str, Any]) -> float:
70
span_font_size = extract_font_size(span)
71
if span_font_size < mode_font_size:
72
idx = 7
73
- elif span_font_size == mode_font_size:
+ elif span_font_size == mode_font_size or len(heading_font_sizes) == 0:
74
idx = 6
75
else:
76
idx = np.argmin(np.abs(heading_font_sizes - span_font_size)) # type: ignore[assignment]
0 commit comments