Improved markdown formatting of understanding reticulum manual chapter

This commit is contained in:
Mark Qvist
2026-05-23 09:18:45 +02:00
parent 1d7cfe7c20
commit abca32bca4
8 changed files with 400 additions and 1243 deletions
+3
View File
@@ -11,6 +11,7 @@ LINE_START_PATTERNS = [
]
LINE_ANY_PATTERNS = [
# r'<br/>',
# r'<div[^>]*>',
# r'</div>',
]
@@ -57,6 +58,8 @@ def clean_markdown_content(content, start_patterns, any_patterns, api_ref=False)
if line.startswith("#### "): line = line.replace("#### ", "#### `")
line = f"{line}`"
line = line.replace("<br/>", "")
result.append(line)
# Remove trailing empty lines from end of file