mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-06-08 14:11:53 -07:00
Clean weird markdown output in API reference
This commit is contained in:
+3
-2
@@ -52,8 +52,9 @@ def clean_markdown_content(content, start_patterns, any_patterns, api_ref=False)
|
||||
if api_ref:
|
||||
if line.startswith("### ") or line.startswith("#### "):
|
||||
line = line.replace("*", "")
|
||||
line = line.replace("#### ", "#### `")
|
||||
line = line.replace("### ", "### `")
|
||||
line = line.replace("\\_", "_")
|
||||
if line.startswith("### "): line = line.replace("### ", "### `")
|
||||
if line.startswith("#### "): line = line.replace("#### ", "#### `")
|
||||
line = f"{line}`"
|
||||
|
||||
result.append(line)
|
||||
|
||||
+146
-146
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user