Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an example of a custom filter. #19

Merged
merged 3 commits into from
Nov 29, 2012
Merged

Conversation

benubois
Copy link
Contributor

I found this project very useful, so thanks.

I did have a couple of filters I was already using that I was able to move to html-pipeline, so I thought I'd add some info on how to do that.

Thanks.

@@ -151,6 +151,36 @@ EmojiPipeline = Pipeline.new [
], context, {}
```

## Extending
If you need a custom filter, you can write your own. All that is needed is a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make this a bit more concise. How do you feel about:

To write a own custom filter, ...

@jch
Copy link
Contributor

jch commented Nov 28, 2012

Nice example! It's a good starting point and explanation for someone to roll their own filter.

@benubois
Copy link
Contributor Author

Thanks, I've rewritten the copy a bit, might be a little tighter now.

jch added a commit that referenced this pull request Nov 29, 2012
Added an example of a custom filter. [skip ci]
@jch jch merged commit 9d3e97d into gjtorikian:master Nov 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants