v0.10.0
Markdown support
You can now write your emails using markdown! Simply bundle any supported markdown gem (redcarpet, kramdown or commonmarker) and it will be used (a technique I borrowed from Perron). Define a markdown method in your email class:
class OrderEmail < Courrier::Email
def subject = "Your order is ready!"
def markdown
<<~MARKDOWN
# Hello #{name}!
Your order **##{order_id}** is ready for pickup.
## Order Details
- Item: #{item_name}
- Price: #{price}
MARKDOWN
end
endWhat's Changed
- Add support for markdown by @eelcoj in #32
- Add headers class method to email classes by @eelcoj in #36
Full Changelog: v0.9.0...v0.10.0