exempt codeblocks from marsify

pull/195/head
Aevann 2023-08-15 23:17:41 +03:00
parent 52f29f2673
commit f804555163
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ from random import choice
from .const_stateful import marsey_mappings
def marsify(text):
if '`' in text or '<pre>' in text or '<code>' in text:
return text
new_text = ''
for x in text.split(' '):
new_text += f'{x} '