def pipeline_filters(options)
      filters = [
          HTML::Pipeline::MarkdownFilter,
          HTML::Pipeline::SanitizationFilter,
          HTML::Pipeline::ImageMaxWidthFilter,
          HTML::Pipeline::HttpsFilter,
          HTML::Pipeline::EmojiFilter,
          GithubMarkdownPreview::Pipeline::TaskListFilter
      ]

      if HtmlPreview::SYNTAX_HIGHLIGHTS
        filters << HTML::Pipeline::SyntaxHighlightFilter
      end

      if options[:comment_mode]
        filters << HTML::Pipeline::MentionFilter
      else
        filters << HTML::Pipeline::TableOfContentsFilter
      end

      filters
    end
def pipeline_filters(options)
      filters = [
          HTML::Pipeline::MarkdownFilter,
          HTML::Pipeline::SanitizationFilter,
          HTML::Pipeline::ImageMaxWidthFilter,
          HTML::Pipeline::HttpsFilter,
          HTML::Pipeline::EmojiFilter,
          GithubMarkdownPreview::Pipeline::TaskListFilter
      ]

      if HtmlPreview::SYNTAX_HIGHLIGHTS
        filters << HTML::Pipeline::SyntaxHighlightFilter
      end

      if options[:comment_mode]
        filters << HTML::Pipeline::MentionFilter
      else
        filters << HTML::Pipeline::TableOfContentsFilter
      end

      filters
    end
Compute the filters to use in the html-pipeline based on the given options