Allows the usage of utf-8 encoded Markdown partials.
An issue in Tilt prevents the usage of Markdown partials encoded in utf-8.
This Stackoverflow thread provides a workaround by force-encoding the output of the partial.
This gem overrides the
partial helper method in Middleman to force-encode the result in utf-8, allowing to call it as if it worked out of the box :
.article= partial 'article'
source/_article.md is an utf-8 encoded Markdown file.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install middleman-utf8-partial
Activate the gem in
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request