You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -230,19 +230,28 @@ end
230
230
231
231
For more information on how to write effective `NodeFilter`s, refer to the provided filters, and see the underlying lib, [Selma](https://www.github.com/gjtorikian/selma) for more information.
232
232
233
-
-`AbsoluteSourceFilter` - replace relative image urls with fully qualified versions
234
-
-`EmojiFilter` - converts `:<emoji>:` to [emoji](http://www.emoji-cheat-sheet.com/)!
235
-
-`HttpsFilter` - Replacing http urls with https versions
236
-
-`ImageMaxWidthFilter` - link to full size image for large images
237
-
-`MentionFilter` - replace `@user` mentions with links
238
-
-`SanitizationFilter` - allow sanitize user markup
239
-
-`TableOfContentsFilter` - anchor headings with name attributes and generate Table of Contents html unordered list linking headings
240
-
-`TeamMentionFilter` - replace `@org/team` mentions with links
233
+
-`AbsoluteSourceFilter`: replace relative image urls with fully qualified versions
234
+
-`EmojiFilter`: converts `:<emoji>:` to [emoji](http://www.emoji-cheat-sheet.com/)
235
+
- (Note: the included `MarkdownFilter` will already convert emoji)
236
+
-`HttpsFilter`: Replacing http urls with https versions
237
+
-`ImageMaxWidthFilter`: link to full size image for large images
238
+
-`MentionFilter`: replace `@user` mentions with links
239
+
-`SanitizationFilter`: allow sanitize user markup
240
+
-`SyntaxHighlightFilter`: applies syntax highlighting to `pre` blocks
241
+
- (Note: the included `MarkdownFilter` will already apply highlighting)
242
+
-`TableOfContentsFilter`: anchor headings with name attributes and generate Table of Contents html unordered list linking headings
243
+
-`TeamMentionFilter`: replace `@org/team` mentions with links
241
244
242
245
## Dependencies
243
246
244
-
Since filters can be customized to your heart's content, gem dependencies are _not_ bundled; this project doesn't know which of the default filters you might use, and as such, you must bundle each filter's gem
245
-
dependencies yourself.
247
+
Since filters can be customized to your heart's content, gem dependencies are _not_ bundled; this project doesn't know which of the default filters you might use, and as such, you must bundle each filter's gem dependencies yourself.
248
+
249
+
For example, `SyntaxHighlightFilter` uses [rouge](https://github.com/jneen/rouge)
250
+
to detect and highlight languages; to use the `SyntaxHighlightFilter`, you must add the following to your Gemfile:
251
+
252
+
```ruby
253
+
gem "rouge"
254
+
```
246
255
247
256
> **Note**
248
257
> See the [Gemfile](/Gemfile)`:test` group for any version requirements.
Copy file name to clipboardExpand all lines: UPGRADING.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ This project is now under a module called `HTMLPipeline`, not `HTML::Pipeline`.
13
13
The following filters were removed:
14
14
15
15
-`AutolinkFilter`: this is handled by [Commonmarker](https://www.github.com/gjtorikian/commonmarker) and can be disabled/enabled through the `MarkdownFilter`'s `context` hash
16
-
-`SyntaxHighlightFilter`: this is handled by [Commonmarker](https://www.github.com/gjtorikian/commonmarker) and can be disabled/enabled through the `MarkdownFilter`'s `context` hash
17
16
-`SanitizationFilter`: this is handled by [Selma](https://www.github.com/gjtorikian/selma); configuration can be done through the `sanitization_config` hash
0 commit comments