New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

middleman-utf8-partial

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middleman-utf8-partial

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Middleman::Utf8::Partial

Allows the usage of utf-8 encoded Markdown partials.

Why

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'

where source/_article.md is an utf-8 encoded Markdown file.

Installation

Add this line to your application's Gemfile:

gem 'middleman-utf8-partial'

And then execute:

$ bundle

Or install it yourself as:

$ gem install middleman-utf8-partial

Usage

Activate the gem in config.rb :

activate :utf8_partial

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 16 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc