Browse Source

Merge pull request #14138 from jumpserver/pr@dev@markdown_html

fix: Internal letter hyperlinks cannot be redirected
pull/14142/head
ZhaoJiSen 2 months ago committed by GitHub
parent
commit
1cb00b1db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/common/utils/common.py

2
apps/common/utils/common.py

@ -427,7 +427,7 @@ def is_macos():
def convert_html_to_markdown(html_str): def convert_html_to_markdown(html_str):
h = html2text.HTML2Text() h = html2text.HTML2Text()
h.body_width = 0 h.body_width = 0
h.ignore_links = True h.ignore_links = False
markdown = h.handle(html_str) markdown = h.handle(html_str)
markdown = markdown.replace('\n\n', '\n') markdown = markdown.replace('\n\n', '\n')

Loading…
Cancel
Save