소스 검색

fixed displaing code

Rodja Trappe 2 년 전
부모
커밋
b0d177b20d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -14,7 +14,7 @@ with open('README.md', 'r') as file:
     content = re.sub(r'(?m)^\<img.*\n?', '', content)
     content = re.sub(r'(?m)^\<img.*\n?', '', content)
     # change absolute link on GitHub to relative link
     # change absolute link on GitHub to relative link
     content = content.replace('(https://nicegui.io/reference)', '(reference)')
     content = content.replace('(https://nicegui.io/reference)', '(reference)')
-    README = Markdown.apply_tailwind(markdown2.markdown(content))
+    README = Markdown.apply_tailwind(markdown2.markdown(content, extras=['fenced-code-blocks']))
 
 
 
 
 async def go_to_anchor():
 async def go_to_anchor():