<commit_before>[![Gem Version](https://badge.fury.io/rb/liquid_markdown.svg)](https://badge.fury.io/rb/liquid_markdown)

# LiquidMarkdown

Combines [Liquid](https://github.com/Shopify/liquid) and [Markdown](https://daringfireball.net/projects/markdown/) templating
for generic templating and Rails Mailers.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'liquid_markdown', '~> 0.2.1'
# If you want to use database template
gem 'panoramic'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install liquid_markdown

## Usage

You can use `liquid_markdown` in your mailer with `.liqmd` file extension

### Using Rails mailer and view template

```ruby
# app/mailers/user_mailer.rb
class UserMailer < ApplicationMailer
  def confirmation(user)
    @user = user

    mail(to: @user.email, subject: 'liquid markdown layout') do |format|
      format.html
      format.text
    end
  end
end<commit_msg>version update<commit_after>[![Gem Version](https://badge.fury.io/rb/liquid_markdown.svg)](https://badge.fury.io/rb/liquid_markdown)

# LiquidMarkdown

Combines [Liquid](https://github.com/Shopify/liquid) and [Markdown](https://daringfireball.net/projects/markdown/) templating
for generic templating and Rails Mailers.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'liquid_markdown', '~> 0.2.2'
# If you want to use database template
gem 'panoramic'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install liquid_markdown

## Usage

You can use `liquid_markdown` in your mailer with `.liqmd` file extension

### Using Rails mailer and view template

```ruby
# app/mailers/user_mailer.rb
class UserMailer < ApplicationMailer
  def confirmation(user)
    @user = user

    mail(to: @user.email, subject: 'liquid markdown layout') do |format|
      format.html
      format.text
    end
  end
end
{'fraction_non_alphanumeric': 0.11665790856542302, 'fraction_numerical': 0.0031529164477141357, 'mean_word_length': 4.202185792349726, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7669801', 'n_tokens_mistral': 674, 'n_tokens_neox': 607, 'n_words': 174}