mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-05 06:10:07 -05:00
Improved markdown formatting of understanding reticulum manual chapter
This commit is contained in:
parent
1d7cfe7c20
commit
abca32bca4
8 changed files with 400 additions and 1243 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue