mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-08-03 22:37:31 +00:00
Clean weird markdown output in API reference
This commit is contained in:
parent
3136b53277
commit
62532e1c54
2 changed files with 149 additions and 148 deletions
|
|
@ -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)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue