UI: clear the markdown LRU cache when using the default/notebook tabs

This commit is contained in:
oobabooga 2024-07-25 08:01:42 -07:00
parent a34273755b
commit 42e80108f5

View File

@ -150,6 +150,7 @@ def convert_to_markdown_wrapped(string, use_cache=True):
def generate_basic_html(string):
convert_to_markdown.cache_clear()
string = convert_to_markdown(string)
string = f'<style>{readable_css}</style><div class="readable-container">{string}</div>'
return string