Closed egauthier closed 1 year ago
Hello! In the template, there is an option to specify how the mail will appear in the note. To avoid using Trundown, you can use ${Body|text} in the mail template note.
There are three options available for the presentation of the mail:
htmlmd
: This will trigger Turndown to convert HTML to markdown.text
: This will parse the mail as pure text, meaning that the markdown format content will remain. URLs will be parsed as [{Url Title}]({Url})
.raw
: This will save the mail in HTML, so the note should be rendered exactly as it appears in the email client.Thank you for considering these revisions!
Use Case
Writing email in Markdown causes a problem as Turndown does not convert well.
Proposal
Make the Turndown call a Settings option so Emails could be written in pure markdown and then just incorporated into Obsidan.
Example
Here is the rendering in Obsidian of a simple markdown file sent as email.
This is the original email source. If pure markdown is used in the email, Turndown doesn't seem to recognize it.