Docs: Remove extra backslashes from commented config

Update docs to use \e in the example.
This commit is contained in:
pagedown
2022-12-05 14:27:40 +08:00
parent 14a33dbd94
commit 9c488bb877
2 changed files with 4 additions and 2 deletions

View File

@@ -113,6 +113,8 @@ def remove_markup(text: str) -> str:
if key in ('ac', 'opt'):
t, q = extract(m)
return f'{t} {q}' if q and q != t else t
if key == 'code':
return m.group(2).replace('\\\\', '\\')
return str(m.group(2))