jekyll/jekyll — pull request #2918 by nitoyon (2014-09-13 18:16:00+00:00)
Title: Add allowed_chars parameter to slugify Liquid filter

It would be nice to add new `allowed_chars` parameter to slugify filter.

Example:

* `{{ "C++" | slugify }}` => `c`
* `{{ "C++" | slugify: "+" }}` => `c++`
* `{{ "The _config.yml file" | slugify }}` => `the-config-yml-file`
* `{{ "The _config.yml file" | slugify: '_.' }}` => `the-_config.yml-file`

I want to use this parameter when I enumerate tags of a post, because both `{{ "C++" | slugify }}` and `{ "C#" | slugify }}` are converted to `c`.

```
{% for tag in page.tags %}
{{tag | xml_escape }}
{% endfor %}
```