summaryrefslogtreecommitdiff
path: root/spec/frontend/gfm_auto_complete_spec.js
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc42GitLab Bot2021-04-201-0/+35
|
* Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40GitLab Bot2021-03-161-46/+86
|
* Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42GitLab Bot2021-02-181-98/+30
|
* Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42Robert Speicher2021-01-201-22/+19
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-4/+231
|
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-211-2/+115
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-5/+2
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-141-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-051-2/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-031-0/+109
|
* Increase Jest timeout to 500msWinnie Hellmann2019-05-171-3/+0
|
* Escape special characters in GFM auto complete highlightingJan Beckmann2019-04-251-0/+32
| | | | Fixes #60552
* Move EE specific GfmAutocomplete code to EE file10096-gfm-autocomplete-ceRajat Jain2019-04-241-1/+1
| | | | | Refactor GfmAutocomplete and create a new EE counterpart which is referenced through `ee_else_ce`
* Only use backslash escapes in autocomplete when neededmarkdown-autocomplete-escapingSean McGivern2019-04-171-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autocompletion for references happens on the frontend. Those references are turned into actual references on the backend, but only after Markdown processing has happened. That means that if a reference contains a character that Markdown might consume, it won't render correctly. So we need to do some escaping on the frontend. We have these potential problem characters: https://docs.gitlab.com/ee/user/markdown.html#emphasis 1. ~ - this is ~~strikethrough~~, but only when doubled. 2. _ - used for _emphasis_, doubled is __bold__. 3. * - also used for *emphasis*, doubled is **bold** also. 4. ` - used for `code spans`, any number works. We don't need to escape `-` any more. When it comes to being inside a word: 1. a~~b~~ has strikethrough, so it needs to be escaped everywhere. 2. a_b_ has no emphasis (see [a]) so it only needs to be escaped at the start and end of words. 3. a*b* has emphasis, so it needs to be escaped everywhere. 4. a`b` has a code span, so it needs to be escaped everywhere. Or, in code terms: 1. Always escape ~~, *, and ` when being inserted by autocomplete. 2. Escape _ when it's either at the beginning or the end of a word. [a]: https://docs.gitlab.com/ee/user/markdown.html#multiple-underscores-in-words
* Merge branch 'winh-dequarantine-labels-autocomplete' into 'master'Kushal Pandya2019-03-201-2/+97
|\ | | | | | | | | | | | | Move gfm_autocomplete_spec.rb out of quarantine Closes #57995 and #56843 See merge request gitlab-org/gitlab-ce!25958
| * Add getJSONFixture() helper to JestWinnie Hellmann2019-03-111-2/+3
| |
| * Increase timeout for gfm_auto_complete_spec.jsWinnie Hellmann2019-03-111-0/+4
| |
| * Merge branch 'winh-dequarantine-labels-autocomplete' into 'master'Phil Hughes2019-03-111-2/+92
| | | | | | | | | | | | | | | | | | | | Move gfm_autocomplete_spec.rb out of quarantine Closes #57995 and #56843 See merge request gitlab-org/gitlab-ce!25542 (cherry picked from commit 2dcbc0fa5657ab5c4ed46c5c84b8674faec36ea8)
* | Prefer node_modules At.js and jquery.carat versionsMike Greiling2019-03-131-2/+2
|/ | | | | Remove references to the vendored copies of At.js and jquery.carat as well as the legacy rails wrapper gem.
* Revert "Merge branch 'winh-dequarantine-labels-autocomplete' into 'master'"Winnie Hellmann2019-03-051-92/+2
| | | | This reverts merge request !25542
* Add tests for labels dropdown to gfm_auto_complete_spec.jsWinnie Hellmann2019-02-271-2/+92
|
* Move gfm_auto_complete_spec.js to JestWinnie Hellmann2019-02-211-0/+253