mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-01-21 12:55:31 +01:00
KML Fix
This commit is contained in:
parent
932aabc2f3
commit
5c795609e4
@ -2168,7 +2168,7 @@ def sendUSStatItems():
|
||||
# KoboldAI Markup Formatting (Mixture of Markdown and sanitized html)
|
||||
#==================================================================#
|
||||
def kml(txt):
|
||||
txt = txt.replace('>', '>')
|
||||
txt = txt.replace('\>', '>')
|
||||
txt = bleach.clean(markdown.markdown(txt), tags = ['p', 'em', 'strong', 'code', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'ul', 'b', 'i', 'a', 'span', 'button'], styles = ['color', 'font-weight'], attributes=['id', 'class', 'style', 'href'])
|
||||
return txt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user