Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have been using the gmail web app exclusively for one reason: I use the following Chrome Plugin to convert Markdown to HTML emails: https://chrome.google.com/webstore/detail/markdown-here/?hl=...

Did you ever consider adding a Markdown to HTML email option?

This is especially helpful when sending formatted code around!



This is doable via a shell script (+ pandoc):

  # 1. Put markdown on clipboard
  
  # 2. Convert to hex
  out=$(pbpaste | pandoc -f markdown -t html -s | hexdump -ve '1/1 "%.2x"')
  
  # 3. Convert to an applescript data class
  osascript -e "set the clipboard to «data HTML${out}»"

  # 4. Paste rich HTML
You can use something like Alfred or Keyboard Maestro to trigger that script with a keyboard shortcut.


Very clever! Thanks for sharing!

As a programmer, having native markdown support in the app is something I wish for almost every day (especially for code blocks). It's something I plan to add.


That would for sure get me to pay for it tbh never even thought of that as a feature




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: