forked from rDrama/rDrama
exempt codeblocks from marsify
parent
52f29f2673
commit
f804555163
|
@ -3,6 +3,9 @@ from random import choice
|
||||||
from .const_stateful import marsey_mappings
|
from .const_stateful import marsey_mappings
|
||||||
|
|
||||||
def marsify(text):
|
def marsify(text):
|
||||||
|
if '`' in text or '<pre>' in text or '<code>' in text:
|
||||||
|
return text
|
||||||
|
|
||||||
new_text = ''
|
new_text = ''
|
||||||
for x in text.split(' '):
|
for x in text.split(' '):
|
||||||
new_text += f'{x} '
|
new_text += f'{x} '
|
||||||
|
|
Loading…
Reference in New Issue