mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 13:52:15 +00:00
Clean weird markdown output in API reference
This commit is contained in:
1 parent
3136b53277
commit
62532e1c54
2 files changed
+149
-148
No files matched your search
+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