-
- Downloads
There was a problem fetching the pipeline summary.
Merge branch 'rs-more-pipeline-filters' into 'master'
More HTML::Pipeline filters The big part of this MR is a feature that is intended to test the entire Markdown-parsing process from beginning to end. See `spec/support/markdown_feature.rb` and `spec/features/markdown_spec.rb`. One big thing this MR fixes is not being able to type a `<` or `>` anywhere. It now gets properly escaped. This MR also adds three more custom HTML::Pipeline filters: ### AutolinkFilter Similar to the built-in Autolink filter in that it still uses Rinku for standard http and ftp links, but then does some further processing to allow auto-linking of any URI scheme. See internal issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2239 ### SanitizationFilter Created a simple custom SanitizationFilter that sub-classes the default one and adds our custom whitelisting. ### TableOfContentsFilter Adds the anchor links to each header. This removes some processing from our Redcarpet renderer. Closes #800, #1015, #1528, #1549 Closes GitHub [8535](https://github.com/gitlabhq/gitlabhq/issues/8535) See merge request !584
Showing
- app/assets/stylesheets/generic/typography.scss 6 additions, 1 deletionapp/assets/stylesheets/generic/typography.scss
- app/helpers/gitlab_markdown_helper.rb 2 additions, 5 deletionsapp/helpers/gitlab_markdown_helper.rb
- app/helpers/issues_helper.rb 1 addition, 12 deletionsapp/helpers/issues_helper.rb
- app/models/external_issue.rb 4 additions, 0 deletionsapp/models/external_issue.rb
- app/models/project.rb 8 additions, 8 deletionsapp/models/project.rb
- features/steps/shared/markdown.rb 6 additions, 2 deletionsfeatures/steps/shared/markdown.rb
- lib/gitlab/markdown.rb 12 additions, 57 deletionslib/gitlab/markdown.rb
- lib/gitlab/markdown/autolink_filter.rb 100 additions, 0 deletionslib/gitlab/markdown/autolink_filter.rb
- lib/gitlab/markdown/issue_reference_filter.rb 6 additions, 11 deletionslib/gitlab/markdown/issue_reference_filter.rb
- lib/gitlab/markdown/merge_request_reference_filter.rb 0 additions, 1 deletionlib/gitlab/markdown/merge_request_reference_filter.rb
- lib/gitlab/markdown/sanitization_filter.rb 38 additions, 0 deletionslib/gitlab/markdown/sanitization_filter.rb
- lib/gitlab/markdown/table_of_contents_filter.rb 62 additions, 0 deletionslib/gitlab/markdown/table_of_contents_filter.rb
- lib/gitlab/theme.rb 1 addition, 1 deletionlib/gitlab/theme.rb
- lib/redcarpet/render/gitlab_html.rb 6 additions, 33 deletionslib/redcarpet/render/gitlab_html.rb
- spec/factories/projects.rb 18 additions, 2 deletionsspec/factories/projects.rb
- spec/features/markdown_spec.rb 391 additions, 0 deletionsspec/features/markdown_spec.rb
- spec/fixtures/markdown.md.erb 178 additions, 0 deletionsspec/fixtures/markdown.md.erb
- spec/helpers/gitlab_markdown_helper_spec.rb 1 addition, 106 deletionsspec/helpers/gitlab_markdown_helper_spec.rb
- spec/helpers/issues_helper_spec.rb 0 additions, 18 deletionsspec/helpers/issues_helper_spec.rb
- spec/lib/gitlab/markdown/autolink_filter_spec.rb 106 additions, 0 deletionsspec/lib/gitlab/markdown/autolink_filter_spec.rb
Loading
Please register or sign in to comment