anicholson / obsidian-google-mail

Fetch emails to Obsidian (as markdown) from Gmail server
55 stars 4 forks source link

Feature Request: Allow for Turndown to be optional in Settings #22

Closed egauthier closed 1 year ago

egauthier commented 1 year ago

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. Screenshot 2023-01-31 at 7 27 18 AM

This is the original email source. If pure markdown is used in the email, Turndown doesn't seem to recognize it.

Screenshot 2023-01-31 at 7 29 56 AM

thingnotok commented 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:

Thank you for considering these revisions!