Merge branch 'oobabooga:main' into feature/gpt-j-4bit-v2
This commit is contained in:
commit
1ac003d41c
5 changed files with 17 additions and 12 deletions
|
@ -34,7 +34,7 @@ def convert_to_markdown(string):
|
|||
string = string.replace('\\begin{blockquote}', '> ')
|
||||
string = string.replace('\\end{blockquote}', '')
|
||||
string = re.sub(r"(.)```", r"\1\n```", string)
|
||||
# string = fix_newlines(string)
|
||||
string = fix_newlines(string)
|
||||
return markdown.markdown(string, extensions=['fenced_code'])
|
||||
|
||||
def generate_basic_html(string):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue