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

Allow passing skip_tags in autolink filter context #65

Merged
merged 1 commit into from
Jul 10, 2013

Conversation

pengwynn
Copy link
Contributor

Enables passing the skip_tags argument to Rinku. Defaults to Rinku.skip_tags.

Enables passing the `skip_tags` argument to Rinku. Defaults to
Rinku.skip_tags
@jch
Copy link
Contributor

jch commented Jul 10, 2013

Looks good. I can cut a release with these changes, but since it changes the default behavior, you'll need to update any pipelines that use this before upgrading the gem.

@pengwynn
Copy link
Contributor Author

It should be backwards compatible. The previously hardcoded defaults are the same as if you don't pass context[:skip_tags].

nil => Rinku.skip_tags which defaults to ["a", "pre", "code", "kbd", "script"]

@jch
Copy link
Contributor

jch commented Jul 10, 2013

Nice, was on my phone and missed the test you added for that case.

jch added a commit that referenced this pull request Jul 10, 2013
Allow passing skip_tags in autolink filter context
@jch jch merged commit 73b9982 into gjtorikian:master Jul 10, 2013
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