Skip to content

Commit

Permalink
Replace more usages of linguist with rouge
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Mar 12, 2018
1 parent b5b0cd4 commit 7732fd8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ EmojiPipeline = Pipeline.new [

Filter gem dependencies are not bundled; you must bundle the filter's gem
dependencies. The below list details filters with dependencies. For example,
`SyntaxHighlightFilter` uses [github-linguist](https://github.com/github/linguist)
`SyntaxHighlightFilter` uses [rouge](https://github.com/jneen/rouge)
to detect and highlight languages. For example, to use the `SyntaxHighlightFilter`,
add the following to your Gemfile:

```ruby
gem 'github-linguist'
gem 'rouge'
```

* `AutolinkFilter` - `rinku`
Expand All @@ -185,7 +185,7 @@ gem 'github-linguist'
* `MarkdownFilter` - `commonmarker`
* `PlainTextInputFilter` - `escape_utils`
* `SanitizationFilter` - `sanitize`
* `SyntaxHighlightFilter` - `github-linguist`
* `SyntaxHighlightFilter` - `rouge`
* `TextileFilter` - `RedCloth`

_Note:_ See [Gemfile](/Gemfile) `:test` block for version requirements.
Expand Down
4 changes: 2 additions & 2 deletions bin/html-pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ if ARGV.empty?
HTML::Pipeline::TableOfContentsFilter
]

# Add syntax highlighting if linguist is present
# Add syntax highlighting if rouge is present
begin
require 'linguist'
require 'rouge'
filters << HTML::Pipeline::SyntaxHighlightFilter
rescue LoadError
end
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_3.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ group :test do
gem "email_reply_parser", "~> 0.5", :require => false
gem "sanitize", "~> 2.0", :require => false
gem "escape_utils", "~> 1.0", :require => false
gem "github-linguist", "~> 2.10", :require => false
gem "rouge", "~> 3.1", :require => false
end

gemspec :path => "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_4.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ group :test do
gem "email_reply_parser", "~> 0.5", :require => false
gem "sanitize", "~> 2.0", :require => false
gem "escape_utils", "~> 1.0", :require => false
gem "github-linguist", "~> 2.10", :require => false
gem "rouge", "~> 3.1", :require => false
end

gemspec :path => "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ group :test do
gem "email_reply_parser", "~> 0.5", :require => false
gem "sanitize", "~> 2.0", :require => false
gem "escape_utils", "~> 1.0", :require => false
gem "github-linguist", "~> 2.10", :require => false
gem "rouge", "~> 3.1", :require => false
end

gemspec :path => "../"

0 comments on commit 7732fd8

Please sign in to comment.