summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/markdown
Commit message (Collapse)AuthorAgeFilesLines
* Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan2015-12-1520-2235/+0
|
* Merge branch 'master' into tmp-reference-pipeline-and-cachingtmp-reference-pipeline-and-cachingDouwe Maan2015-12-1020-20/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # spec/lib/gitlab/markdown/autolink_filter_spec.rb # spec/lib/gitlab/markdown/commit_range_reference_filter_spec.rb # spec/lib/gitlab/markdown/commit_reference_filter_spec.rb # spec/lib/gitlab/markdown/cross_project_reference_spec.rb # spec/lib/gitlab/markdown/emoji_filter_spec.rb # spec/lib/gitlab/markdown/external_issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/external_link_filter_spec.rb # spec/lib/gitlab/markdown/issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/label_reference_filter_spec.rb # spec/lib/gitlab/markdown/merge_request_reference_filter_spec.rb # spec/lib/gitlab/markdown/redactor_filter_spec.rb # spec/lib/gitlab/markdown/reference_gatherer_filter_spec.rb # spec/lib/gitlab/markdown/relative_link_filter_spec.rb # spec/lib/gitlab/markdown/sanitization_filter_spec.rb # spec/lib/gitlab/markdown/snippet_reference_filter_spec.rb # spec/lib/gitlab/markdown/syntax_highlight_filter_spec.rb # spec/lib/gitlab/markdown/table_of_contents_filter_spec.rb # spec/lib/gitlab/markdown/task_list_filter_spec.rb # spec/lib/gitlab/markdown/upload_link_filter_spec.rb # spec/lib/gitlab/markdown/user_reference_filter_spec.rb
| * Tag lib specsDouwe Maan2015-12-0920-20/+20
| |
* | Store the demodulized reference filter name in data attributeRobert Speicher2015-12-072-14/+14
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-077-111/+370
|\ \ | |/
| * Use URL helpers in specsDouwe Maan2015-12-031-3/+3
| |
| * Merge branch 'master' into link-refsDouwe Maan2015-12-021-3/+3
| |\
| * | Satisfy RubocopDouwe Maan2015-12-022-2/+2
| | |
| * | Pick up direct links to issues/MRs as references.Douwe Maan2015-12-017-41/+145
| | |
| * | Autolink first so we don't pick up numeric anchors as issue references.Douwe Maan2015-12-015-87/+87
| | |
| * | Render commit reference using short sha, but include full sha in comment.Douwe Maan2015-12-012-4/+4
| | |
| * | Fix specsDouwe Maan2015-11-302-3/+1
| | |
| * | Recognize commit range with named refs in compare URLs.Douwe Maan2015-11-301-5/+6
| | |
| * | Recognize issue/MR/snippet/commit links as references.Douwe Maan2015-11-305-3/+158
| | |
| * | Render commit range reference with short shas, link to full shas.Douwe Maan2015-11-301-3/+4
| | |
* | | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-021-3/+3
|\ \ \ | | |/ | |/|
| * | fix specsrails_update_to_4_2Valery Sizov2015-11-301-3/+3
| |/
* | Move Markdown filters and pipelines into folders.Douwe Maan2015-11-1939-1996/+1961
| |
* | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-11-191-10/+91
|\ \ | |/
| * Merge branch 'rs-dev-issue-2613' into 'master' Douwe Maan2015-11-021-10/+91
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add custom protocol whitelisting to SanitizationFilter Addresses internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2613 We allow any protocol for autolinks: irc://irc.freenode.net/git But manual Markdown links with the same protocol get sanitized: `[This will not be clickable](irc://irc.freenode.net/git)`: [This will not be clickable](irc://irc.freenode.net/git) To get around this we have to first allow *all* protocols, and then manually clean dangerous (i.e., `javascript:`) protocols. See merge request !1496
| | * Add custom protocol whitelisting to SanitizationFilterrs-dev-issue-2613Robert Speicher2015-10-011-10/+91
| | | | | | | | | | | | Addresses internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2613
| * | Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-151-0/+75
| |\ \
* | | | Fix specsDouwe Maan2015-10-221-4/+4
| | | |
* | | | Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-141-0/+75
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Fix: Images cannot show when projects' path was changeduploads_path_fixValery Sizov2015-10-141-0/+75
| |/
* | Refactor reference gathering to use a dedicated filterDouwe Maan2015-10-079-86/+226
| |
* | Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-072-4/+41
|\ \ | |/
| * Allow RelativeLinkFilter to go up multiple directoriesrs-relative-link-up-oneRobert Speicher2015-09-201-0/+8
| |
| * Allow relative links to go up one directory levelRobert Speicher2015-09-181-4/+14
| |
| * Add comments and clean up test for !1274Stan Hu2015-09-101-3/+0
| |
| * Gracefully handle errors in syntax highlighting by leaving the block unformattedStan Hu2015-09-101-0/+22
| | | | | | | | Closes #2433
* | Remove unnecessary current_user context from filter specsRobert Speicher2015-09-022-24/+11
| |
* | Add RedactorFilter specs for invalid Group and Project referencesRobert Speicher2015-09-011-0/+12
| |
* | Add RedactorFilterRobert Speicher2015-09-011-0/+76
| |
* | Remove all permission checking from Reference filtersRobert Speicher2015-09-017-199/+103
|/
* Reference filters no longer take a custom class context optionRobert Speicher2015-08-278-40/+0
|
* Re-enable the "links with adjacent text" UserReferenceFilter specrs-re-enable-user-reference-specRobert Speicher2015-08-241-1/+0
|
* Remove trailing HTML entities from non-Rinku autolinks as well.rs-dev-issue-2550Robert Speicher2015-08-201-0/+10
|
* Merge branch 'rs-reference-data-attrs' into 'master' Robert Speicher2015-08-107-0/+64
|\ | | | | | | | | | | | | Add `data-[type]-id` attribute to reference links This is to let us redact them later in another filter. See merge request !1110
| * Add `data-[type]-id` attribute to reference linksrs-reference-data-attrsRobert Speicher2015-08-087-0/+64
| | | | | | | | This is to let us redact them later in another filter.
* | Add `Group#add_*` convenience methodsrs-group-convenience-methodsRobert Speicher2015-08-071-1/+1
|/ | | | Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
* Add spec to RelativeLinkFilter for Unicode filenamesRobert Speicher2015-07-301-0/+16
|
* Fix Style/IndentationWidth cop violationsStan Hu2015-06-221-1/+1
|
* Fix Style/SpaceInsideHashLiteralBraces cop violationsRobert Speicher2015-06-221-2/+2
| | | | These fixes were performed automatically by Rubocop's `-a` flag.
* Further limit the limited whitelist for project/group descriptionsrs-more-nofollowRobert Speicher2015-06-021-2/+17
|
* Rename ReferenceFilterSpecHelper to FilterSpecHelperRobert Speicher2015-06-0214-27/+15
| | | | And make it more generalized for all filter specs.
* Add a `pipeline` context option for SanitizationFilterRobert Speicher2015-06-021-0/+14
| | | | | When this option is `:description`, we use a more restrictive whitelist. This is used for Project and Group description fields.
* Add ExternalLinkFilter to Markdown pipeliners-dont-follow-meRobert Speicher2015-05-271-0/+33
| | | | Forces a `rel="nofollow"` attribute on all external links.
* Support only double quotes for multi-word label referencesRobert Speicher2015-05-261-40/+14
|
* Use `to_reference` in reference filter specsRobert Speicher2015-05-268-92/+82
|