mirror of
				https://github.com/KoboldAI/KoboldAI-Client.git
				synced 2025-06-05 21:59:24 +02:00 
			
		
		
		
	KML Fix
This commit is contained in:
		| @@ -2168,7 +2168,7 @@ def sendUSStatItems(): | |||||||
| #  KoboldAI Markup Formatting (Mixture of Markdown and sanitized html) | #  KoboldAI Markup Formatting (Mixture of Markdown and sanitized html) | ||||||
| #==================================================================# | #==================================================================# | ||||||
| def kml(txt): | 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']) |    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 |    return txt | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user