use markdown instead of plain text in eMail sins plain doesn't show url
This commit is contained in:
@@ -164,7 +164,10 @@ if __name__ == "__main__":
|
|||||||
email.addApiKeyToUrls(apiKey)
|
email.addApiKeyToUrls(apiKey)
|
||||||
|
|
||||||
# Create the plain-text and HTML version of your message
|
# 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"])
|
"--self-contained", "--resource-path=../aufgaben"])
|
||||||
html = pypandoc.convert_text(email.mdText, "html", format='md', extra_args=[
|
html = pypandoc.convert_text(email.mdText, "html", format='md', extra_args=[
|
||||||
"--self-contained", "--resource-path=../aufgaben"])
|
"--self-contained", "--resource-path=../aufgaben"])
|
||||||
|
|||||||
Reference in New Issue
Block a user