summaryrefslogtreecommitdiff
path: root/spec/helpers/gitlab_markdown_helper_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename GitlabMarkdownHelper -> MarkupHelperToon Claes2017-04-271-199/+0
| | | | It does more than solely GitLab Markdown, so rename to MarkupHelper.
* Fix rendering emoji inside a stringblackst0ne2017-04-251-2/+2
|
* Fix first line markdown helper for user profile activity stream29425-fix-activity-stream-first-line-markdownEric Eastwood2017-03-141-2/+18
| | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/29425
* Fix wrong image src with cached gl-emoji and relative rootEric Eastwood2017-03-061-1/+1
|
* Use native unicode emojisEric Eastwood2017-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | - gl_emoji for falling back to image/css-sprite when the browser doesn't support an emoji - Markdown rendering (Banzai filter) - Autocomplete - Award emoji menu - Perceived perf - Immediate response because we now build client-side - Update `digests.json` generation in gemojione rake task to be more useful and include `unicodeVersion` MR: !9437 See issues - #26371 - #27250 - #22474
* Ensure we have a project with a repo in GitlabMarkdownHelper specsRémy Coutable2017-01-261-2/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use `:empty_project` where possible in helper specsrs-empty_project-helpersRobert Speicher2017-01-251-9/+10
|
* Fix cross-project references copy to include the project referencefix/cross-project-ref-pathJames Lopez2017-01-031-0/+10
| | | | Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
* Use `Gitlab.config.gitlab.host` over `'localhost'`fix-tests-for-different-hostLin Jen-Shin2016-11-181-1/+1
| | | | | | | | This would fix long standing failures running tests on my development machine, which set `Gitlab.config.gitlab.host` to another host because it's not my local computer. Now I finally cannot withstand it and decided to fix them once and for all.
* fixes part1 of files to start using active tensetiagonbotelho2016-08-091-10/+10
|
* 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
* Remove `random_markdown_tip` helperrs-remove-markdown-tipsRobert Speicher2016-04-091-7/+0
| | | | Only usage got removed in !3442
* Fix specs expecting `emoji/` in image pathRobert Speicher2016-02-131-1/+1
|
* Use the WikiPipeline when rendering the wiki markdown contentDouglas Barbosa Alexandre2016-01-141-2/+3
|
* Refactor reference gathering to use a dedicated filterDouwe Maan2015-10-071-1/+1
|
* Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-071-0/+37
|\
| * Fix link with emojiSAKATA Sinji2015-10-021-0/+6
| |
| * Fix cases where Markdown did not render links in activity feedStan Hu2015-09-221-0/+20
| | | | | | | | | | | | | | | | | | HTML would be stripped in `truncate_if_block` when a comment had multiple lines and the first wasn't long enough to be truncated. The use of `node.content` would strip all HTML tags. Using `node.inner_html` retains these tags and puts the "..." in between paragraph tags. Closes #2586
| * Fix Markdown links not showing up in dashboard activity feedStan Hu2015-09-201-0/+11
| | | | | | | | Closes #2586
* | Fix GitlabMarkdownHelper specRobert Speicher2015-09-011-11/+14
|/
* Remove invalid spec for GitlabMarkdownHelperRobert Speicher2015-08-311-5/+0
|
* Restore the forwarded HTML options in link_to_gfmRobert Speicher2015-08-271-0/+10
|
* Decouple Gitlab::Markdown from the GitlabMarkdownHelperRobert Speicher2015-08-271-16/+6
| | | | | This module is now the sole source of knowledge for *how* we render Markdown (and GFM).
* Fixed the issuescomment-box-changesDarby2015-07-091-0/+1
|
* Comment box/Placeholder text redoDarby2015-07-011-1/+0
|
* Prefix random Markdown tips with "Tip:"rs-random-placeholder-tipRobert Speicher2015-06-241-1/+1
|
* Show a random Markdown tip in the textarea placeholderRobert Speicher2015-06-231-0/+7
|
* Fix link_to_gfm with only a reference having the incorrect linkrs-issue-1721Robert Speicher2015-05-291-0/+6
| | | | Closes #1721
* Make use of to_reference in more specsRobert Speicher2015-05-261-5/+5
|
* Handle AsciiDoc better, reuse HTML pipeline filters (fixes #9263)Jakub Jirutka2015-05-181-0/+8
|
* Fix reference links in dashboard activity and ATOM feeds.dashboard-referencesDouwe Maan2015-05-141-1/+1
|
* Add spec for RelativeLinkFilterJakub Jirutka2015-05-121-73/+0
|
* Remove all references to `parse_tasks`Robert Speicher2015-05-061-109/+0
|
* More gitlab_markdown_helper_spec cleanupRobert Speicher2015-04-301-56/+1
|
* Add Gitlab::Markdown::SanitizationFilterRobert Speicher2015-04-301-33/+0
| | | | | This just extends the HTML::Pipeline::SanitizationFilter with our custom whitelist.
* Add Gitlab::Markdown::TableOfContentsFilterRobert Speicher2015-04-301-17/+0
| | | | Removes header and table of contents processing from Redcarpet renderer.
* Use project.commit convenience method.Douwe Maan2015-04-241-1/+1
|
* More cleanup of gitlab_markdown_helper_specRobert Speicher2015-04-211-98/+92
|
* Use Nokogiri in `link_to_gfm` specsRobert Speicher2015-04-211-20/+22
| | | | Didn't like relying so much on Regex matches
* Update Gitlab::Markdown to use the :new: EmojiFilter :sparkles:Robert Speicher2015-04-211-74/+2
| | | | Removes emoji-centric tests from GFM specs :boom:
* Remove more now-invalid specsRobert Speicher2015-04-201-66/+0
|
* Fix broken specRobert Speicher2015-04-201-11/+1
|
* Re-arrange spec/helpers/gitlab_markdown_helper_spec a bitRobert Speicher2015-04-201-111/+111
|
* Begin cleaning out spec/helpers/gitlab_markdown_helper_specRobert Speicher2015-04-201-335/+30
|
* Fix GitlabMarkdownHelper specRobert Speicher2015-04-201-3/+3
|
* Reference filters :sparkles:Robert Speicher2015-04-201-51/+1
| | | | | Commit ranges, commits, external issues, issues, labels, merge requests, snippets, users.
* Fix errors.Douwe Maan2015-04-021-0/+8
|
* Use relative URL for Markdown references, except in mails.email-full-urlDouwe Maan2015-03-271-3/+3
|
* Return full URLs from GitLabIssueTrackerService.Douwe Maan2015-03-271-2/+2
|
* Merge branch 'master' into markdown-tagsVinnie Okada2015-03-241-0/+11
|\