Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ppworks committed Feb 1, 2024
1 parent 7e56221 commit 67de925
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class HelloJohnnyFilter < HTMLPipelineFilter
end

pipeline = HTMLPipeline.new(
text_filters: [HelloJohnnyFilter.new]
text_filters: [HelloJohnnyFilter]
convert_filter: HTMLPipeline::ConvertFilter::MarkdownFilter.new,
# note: next line is not needed as sanitization occurs by default;
# see below for more info
Expand Down Expand Up @@ -126,7 +126,7 @@ context = {

# Pipeline used for user provided content on the web
MarkdownPipeline = HTMLPipeline.new (
text_filters: [HTMLPipeline::TextFilter::ImageFilter.new],
text_filters: [HTMLPipeline::TextFilter::ImageFilter],
convert_filter: HTMLPipeline::ConvertFilter::MarkdownFilter.new,
node_filters: [
HTMLPipeline::NodeFilter::HttpsFilter.new,HTMLPipeline::NodeFilter::MentionFilter.new,
Expand All @@ -136,8 +136,8 @@ MarkdownPipeline = HTMLPipeline.new (
# processing also.
HtmlEmailPipeline = HTMLPipeline.new(
text_filters: [
PlainTextInputFilter.new,
ImageFilter.new
PlainTextInputFilter,
ImageFilter
], {})
```

Expand Down

0 comments on commit 67de925

Please sign in to comment.