use markdown instead of plain text in eMail sins plain doesn't show url

This commit is contained in:
marko
2023-01-15 18:48:13 +01:00
parent 31fc9b305d
commit 1e8d99edcd

View File

@@ -164,7 +164,10 @@ if __name__ == "__main__":
email.addApiKeyToUrls(apiKey)
# Create the plain-text and HTML version of your message
text = pypandoc.convert_text(email.mdText, "plain", format='md', extra_args=[
# text = pypandoc.convert_text(email.mdText, "plain", format='md', extra_args=[
# "--self-contained", "--resource-path=../aufgaben"])
# plain text did swallow the Url. As workaround we are trying markdown for the plain text
text = pypandoc.convert_text(email.mdText, "markdown", format='md', extra_args=[
"--self-contained", "--resource-path=../aufgaben"])
html = pypandoc.convert_text(email.mdText, "html", format='md', extra_args=[
"--self-contained", "--resource-path=../aufgaben"])