summaryrefslogtreecommitdiff
path: root/spec/features/markdown_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename GitlabMarkdownHelper -> MarkupHelperToon Claes2017-04-271-1/+1
| | | | It does more than solely GitLab Markdown, so rename to MarkupHelper.
* SanitizationFilter allows html5 details and summary (Issue #21605)James2017-03-061-0/+8
| | | | Also adds details/summary tags to Copy-as-GFM
* Remove VideoJS and clean the integrationRémy Coutable2016-07-201-0/+12
| | | | | | | | | Handle videos in: - MD preview in notes: commit, issue/MR, MR diff - New notes in: commit, issue/MR, MR diff - Persisted notes in: commit, issue/MR, MR diff Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch '18019-fix-wiki-linking' into 'master' Rémy Coutable2016-06-091-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix wiki linking behavior for markdown wiki pages Related to #18019 - As per the documentation in !4372 ## TODO - [ ] !4432 Have wiki linking behave as per the documentation - [x] Move `WikiLinkFilter` specs to the pipeline level - [x] Verify current behavior on wiki `show` page - [x] Fix current behavior on wiki `show` page - [x] Verify current behaviour on wiki preview - [x] Fix current behaviour on wiki preview - [x] Rewrite all links and get preview links working - [x] Make sure all links are on-par with the wiki `show` page - [x] TDD `WikiLinkFilter` and get it working - [x] Hook `WikiLinkFilter` up - [x] Fix tests - [x] Fix `markdown_spec` - [x] Fix `wiki` spinach feature - [x] Wait for [build](https://gitlab.com/gitlab-org/gitlab-ce/commit/4f50dd2/builds) to pass - [x] Make sure all wiki-related pages are working as expected (history, all pages, etc.) - [x] Test in different ruby versions - [x] GitLab instances hosted on a relative URL - [x] Non-markdown rendering formats? - [x] RDoc - [x] ASCIIDoc - [x] Create issues to fix things for RDoc and ASCIIDoc - [x] Gauge performance impact - [x] Refactor - [x] Re-organize commits - [x] Make sure [build](https://gitlab.com/gitlab-org/gitlab-ce/commit/f860e9a8dcabe7d5f160c32fc549807c98baa4a1/builds) passes - [x] Respond to @rymai's comments - [x] `class WikiLinkFilter < HTML::Pipeline::Filter` - [x] blank line after guard clause - [x] keyword arguments for `wiki` and `slug` - [x] invert the condition - [x] inline `user` in spec - [x] Make sure spec names are not out of date - [x] Comment for each rewrite rule - [x] Add CHANGELOG entry - [x] Reorganize commits - [x] Make sure [build](https://gitlab.com/gitlab-org/gitlab-ce/commit/19b91e749a6320d12fb299d33f1f6440777e0e26/builds) passes - [ ] Wait for merge See merge request !4432
| * Hook up the updated `WikiLinkFilter` to the wiki controllers.Timothy Andrew2016-06-091-1/+2
| | | | | | | | | | | | | | | | | | - Need to pass in a `page_slug` to the filter, so it can rewrite based on the current page (all links are rewritten to the level of the app root). - The earlier `markdown_preview` endpoint was at the level of the wiki. We need to know the current page (for rewriting, as above), so this commit moves the endpoint to the level of a wiki page. - Fix all tests
* | Combine tests for internal linksAlfredo Sumaran2016-06-081-4/+4
| |
* | Set target="_blank" for external linksAlfredo Sumaran2016-06-081-0/+10
| |
* | Fix markdown_spec to not use `before(:all)` in order to properly cleanup ↵Kamil Trzcinski2016-06-071-2/+2
|/ | | | database after testing
* Create DiffFilter and change SystemNoteService#change_title to use ↵Adam Butler2016-05-181-0/+4
| | | | Gitlab::Diff::InlineDiff
* Fix failing specAlfredo Sumaran2016-04-211-1/+6
|
* Ensure correct filter order to validate with our markdown specpatch/fix-markdown-preview-wikisGabriel Mazetto2016-04-061-1/+1
|
* Fix a few edited references from WikiLinkFilter and specsGabriel Mazetto2016-04-061-0/+1
|
* Add tests for the wiki pipelineDouglas Barbosa Alexandre2016-01-141-5/+58
|
* Render milestone links as referencesDouwe Maan2015-12-241-0/+1
|
* Add post_process method to Gitlab::MarkdownRobert Speicher2015-09-011-1/+1
|
* Decouple Gitlab::Markdown from the GitlabMarkdownHelperRobert Speicher2015-08-271-1/+1
| | | | | This module is now the sole source of knowledge for *how* we render Markdown (and GFM).
* Fix failing specRobert Speicher2015-08-251-2/+2
|
* Remove user_color_scheme_classRobert Speicher2015-08-251-4/+0
| | | | | | | | | Instead of rendering this value server-side, we use Javascript and Gon to apply the user's color scheme (or the default) to any syntax highlighted code blocks. This will make it easier to cache these blocks in the future because they're no longer state-dependent.
* Remove the `gfm_with_options` helperrs-remove-gfm_with_optionsRobert Speicher2015-08-121-2/+2
| | | | It was redundant because `gfm` also took options.
* Fix setup/teardown for Markdown feature specrs-markdown-feature-pipelinesRobert Speicher2015-07-291-16/+9
| | | | Prior, CI seemed to be freezing after running these specs.
* Update Markdown feature to allow for multiple pipelinesRobert Speicher2015-07-281-163/+53
|
* Move MarkdownFeature to its own support fileRobert Speicher2015-07-281-115/+0
| | | | | This file's about to get much bigger and this removes some of the extra noise.
* Break up SanitizationFilter feature specsRobert Speicher2015-07-281-16/+37
|
* Use aggregate_failures where appropriateRobert Speicher2015-07-281-34/+53
|
* Minor Markdown feature spec reorganizationRobert Speicher2015-07-281-46/+47
|
* Simplify AutolinkFilter specsRobert Speicher2015-07-281-16/+12
|
* Add `feature` tag to feature specsRobert Speicher2015-07-061-1/+1
| | | | | Not to be confused with the RSpec `type: :feature` tag, this tag is used by the `spec:feature` Rake task for filtering/grouping specs.
* Add feature specs for Project and Group description renderingRobert Speicher2015-06-021-0/+2
|
* Add ExternalLinkFilter to Markdown pipeliners-dont-follow-meRobert Speicher2015-05-271-1/+13
| | | | Forces a `rel="nofollow"` attribute on all external links.
* Add a note about the commented-out test in Markdown FeatureRobert Speicher2015-05-261-0/+4
|
* Use to_reference in Markdown feature specRobert Speicher2015-05-261-11/+6
|
* Remove class and id attributes from SanitizationFilter whitelistrs-disallow-id-classRobert Speicher2015-05-081-14/+14
|
* Merge branch 'rs-task_list' into 'master'Dmitriy Zaporozhets2015-05-081-3/+12
|\ | | | | | | | | | | | | | | | | | | Use task_list gem for task lists Task Lists can now be used in comments, and they'll render in previews. :clap: Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2271 See merge request !599
| * Add TaskList to Markdown feature specRobert Speicher2015-05-061-3/+12
| |
* | Fix Markdown feature specRobert Speicher2015-05-061-2/+2
| |
* | Add Markdown feature specs for markup inside linksrs-issue-1348Robert Speicher2015-05-061-0/+13
|/ | | | | It was already working, just want to make sure we don't break it in the future.
* Autolink short URLsRobert Speicher2015-04-301-3/+1
|
* Add a feature spec for our entire Markdown parsing stackRobert Speicher2015-04-301-0/+393