mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-26 01:28:10 -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 api_ref:
|
||||||
if line.startswith("### ") or line.startswith("#### "):
|
if line.startswith("### ") or line.startswith("#### "):
|
||||||
line = line.replace("*", "")
|
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}`"
|
line = f"{line}`"
|
||||||
|
|
||||||
result.append(line)
|
result.append(line)
|
||||||
|
|||||||
+146
-146
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user