Skip to content

Instantly share code, notes, and snippets.

@teepark
Created May 13, 2019 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teepark/8977bcb6b8b3972e4534bc79cd58d31b to your computer and use it in GitHub Desktop.
Save teepark/8977bcb6b8b3972e4534bc79cd58d31b to your computer and use it in GitHub Desktop.
macro compose M "\
<enter-command>set pipe_decode=yes<enter>\
<pipe-message>pandoc -s -f gfm -t html5 -o /tmp/mutt-pandoc-buf.html<enter>\
<enter-command>set pipe_decode=no<enter>\
<attach-file>^u/tmp/mutt-pandoc-buf.html<enter>\
<toggle-disposition>\
<edit-type>^utext/html<enter>\
<first-entry>\
<tag-entry>\
<tag-entry>\
<group-alternatives>\
<edit-description>^u<enter>\
" "Convert github-flavored markdown to HTML and combine MIME multipart/alternative"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment