Hi everyone
I am trying to use Drafts to compose emails before sending them with Gmail.
I am not using any email client, I use the Gmail web version in Safari macOS.
I looked for a way to export rich text that I can copy paste into Gmail while preserving the default Gmail formatting, or at least something close.
I installed this action: Copy as Rich Text but the output was not satisfying: small serif font with small line height.
I tried to tweak the action’s code a little bit to add some css styling, I managed to get the font-family and the font-size, but no matter what I do I cannot get the line-height.
Here is the part of the script I have changed:
// Wrap raw MMD output with HTML template with styles to set base fonts.
var template = `<html>
<style>
body {font-family:'Arial';font-size: 13px;line-height:150%;}
</style>
<body>
[[content]]
</body>
</html>
`;
I only have basic coding skills. I am not sure if the problem is with the script or if it is Gmail which is ignoring some css properties.
If someone has figured it out, I would highly appreciate some help here.