Robert Speicher
|
2b94f5fb06
|
Allow RelativeLinkFilter to go up multiple directories
|
2015-09-20 19:21:33 -04:00 |
|
Robert Speicher
|
619f04c196
|
Allow relative links to go up one directory level
|
2015-09-18 14:03:42 -04:00 |
|
Stan Hu
|
267687993a
|
Add comments and clean up test for !1274
|
2015-09-10 14:24:10 -07:00 |
|
Stan Hu
|
9d3344adbb
|
Gracefully handle errors in syntax highlighting by leaving the block unformatted
Closes #2433
|
2015-09-10 09:16:27 -07:00 |
|
Robert Speicher
|
8e7111f79d
|
Reference filters no longer take a custom class context option
|
2015-08-27 15:36:26 -07:00 |
|
Robert Speicher
|
646c1f0324
|
Re-enable the "links with adjacent text" UserReferenceFilter spec
|
2015-08-24 18:56:01 -07:00 |
|
Robert Speicher
|
747fe7520b
|
Remove trailing HTML entities from non-Rinku autolinks as well.
|
2015-08-20 18:25:16 -07:00 |
|
Robert Speicher
|
fb6f8d9198
|
Merge branch 'rs-reference-data-attrs' into 'master'
Add `data-[type]-id` attribute to reference links
This is to let us redact them later in another filter.
See merge request !1110
|
2015-08-10 00:07:56 +00:00 |
|
Robert Speicher
|
32e63ba7a1
|
Add data-[type]-id attribute to reference links
This is to let us redact them later in another filter.
|
2015-08-08 16:43:29 -04:00 |
|
Robert Speicher
|
fb6dc1f07d
|
Add Group#add_* convenience methods
Encapsulates the logic for `Gitlab::Access::WHATEVER` levels.
|
2015-08-07 00:20:02 -04:00 |
|
Robert Speicher
|
4e22dcb6a3
|
Add spec to RelativeLinkFilter for Unicode filenames
|
2015-07-30 17:25:07 -04:00 |
|
Stan Hu
|
52aa21b12d
|
Fix Style/IndentationWidth cop violations
|
2015-06-22 22:25:40 -07:00 |
|
Robert Speicher
|
94eff65569
|
Fix Style/SpaceInsideHashLiteralBraces cop violations
These fixes were performed automatically by Rubocop's `-a` flag.
|
2015-06-22 14:41:00 -04:00 |
|
Robert Speicher
|
9e7a9c63a5
|
Further limit the limited whitelist for project/group descriptions
|
2015-06-02 13:41:12 -04:00 |
|
Robert Speicher
|
79c4e3899f
|
Rename ReferenceFilterSpecHelper to FilterSpecHelper
And make it more generalized for all filter specs.
|
2015-06-02 13:27:53 -04:00 |
|
Robert Speicher
|
023dd2907b
|
Add a pipeline context option for SanitizationFilter
When this option is `:description`, we use a more restrictive whitelist.
This is used for Project and Group description fields.
|
2015-06-02 13:04:10 -04:00 |
|
Robert Speicher
|
7424d2fa5b
|
Add ExternalLinkFilter to Markdown pipeline
Forces a `rel="nofollow"` attribute on all external links.
|
2015-05-27 15:39:08 -04:00 |
|
Robert Speicher
|
81a09bc74c
|
Support only double quotes for multi-word label references
|
2015-05-26 15:49:20 -04:00 |
|
Robert Speicher
|
94af050117
|
Use to_reference in reference filter specs
|
2015-05-26 15:48:32 -04:00 |
|
Robert Speicher
|
136ab73803
|
Update CommitRange#to_reference to use full SHAs
We only want them shortened by the filter, which calls to_s
|
2015-05-26 15:48:31 -04:00 |
|
Robert Speicher
|
b263a33c80
|
Better handle label references that aren't actually references
Fixes #1690
|
2015-05-25 16:06:34 -04:00 |
|
Robert Speicher
|
8ee382087d
|
Subclass TaskList::Filter to fix a bug
Instead of using a fork, we subclass the filter and only apply the
`task-list` class to list items that actually are task lists.
Closes #1645
See https://github.com/github/task_list/pull/60
|
2015-05-20 12:08:33 -04:00 |
|
Robert Speicher
|
7f2fb72a0a
|
Minor RelativeLinkFilter cleanup
|
2015-05-13 14:08:37 -04:00 |
|
Jakub Jirutka
|
44b82396d1
|
Add spec for RelativeLinkFilter
|
2015-05-12 02:12:47 +02:00 |
|
Robert Speicher
|
70bbf093aa
|
Remove class and id attributes from SanitizationFilter whitelist
|
2015-05-08 12:31:34 -04:00 |
|
Robert Speicher
|
0027c2ddd7
|
Add Project#get_issue
|
2015-04-30 16:35:27 -04:00 |
|
Robert Speicher
|
cd3c24a8f3
|
Autolink short URLs
|
2015-04-30 16:35:27 -04:00 |
|
Robert Speicher
|
f4fac3ac87
|
Add jira_project project factory
|
2015-04-30 16:35:27 -04:00 |
|
Robert Speicher
|
e46d1cdd8b
|
Add Gitlab::Markdown::SanitizationFilter
This just extends the HTML::Pipeline::SanitizationFilter with our custom
whitelist.
|
2015-04-30 16:35:25 -04:00 |
|
Robert Speicher
|
aa2cc670fe
|
Add Gitlab::Markdown::AutolinkFilter
|
2015-04-30 16:35:25 -04:00 |
|
Robert Speicher
|
382a0aa6ef
|
Add Gitlab::Markdown::TableOfContentsFilter
Removes header and table of contents processing from Redcarpet renderer.
|
2015-04-30 16:35:25 -04:00 |
|
Robert Speicher
|
07a88040a4
|
Fix NotificationService spec
|
2015-04-25 16:46:06 -04:00 |
|
Robert Speicher
|
6bac823ad4
|
Update CommitRangeReferenceFilter to use CommitRange class
Also matches CommitReferenceFilter's new behavior of always using short
SHAs in the link text.
|
2015-04-25 14:41:06 -04:00 |
|
Robert Speicher
|
2c8bfedb20
|
Always use short SHAs as commit reference link text
Now when a user pastes a full SHA like
`d7f61affaf845f44b4cc995e34eb1606c47c8eff`, its link text will only show
`d7f61aff` for brevity.
|
2015-04-25 14:40:40 -04:00 |
|
Robert Speicher
|
a6defd1576
|
Add results to reference filters
|
2015-04-25 14:39:45 -04:00 |
|
Douwe Maan
|
8ed7ac9d44
|
Use project.commit convenience method.
|
2015-04-24 12:29:36 +02:00 |
|
Robert Speicher
|
4ced630fed
|
Add Gitlab::Markdown::EmojiFilter
|
2015-04-21 12:53:42 -04:00 |
|
Robert Speicher
|
b389424627
|
Skip failing test until usernames can't end in periods again
|
2015-04-20 13:01:47 -04:00 |
|
 Douwe MaanandRobert Speicher
|
c52bf4ad3c
|
Tweak single-word label regex to fix pending spec.
|
2015-04-20 13:01:47 -04:00 |
|
 Douwe MaanandRobert Speicher
|
b5802d144b
|
project_from_ref returns nil when reference doesn't exist.
|
2015-04-20 13:01:47 -04:00 |
|
Robert Speicher
|
2823c058d8
|
project_from_ref returns nil when reference can't be accessed
Prior it would return the project from the current context, which wasn't
the intended behavior.
|
2015-04-20 13:01:47 -04:00 |
|
Robert Speicher
|
3a0b4340aa
|
Add more tests for cross-project references
|
2015-04-20 13:01:46 -04:00 |
|
Robert Speicher
|
b905702d4f
|
Escape title attributes in references
|
2015-04-20 13:01:46 -04:00 |
|
Robert Speicher
|
5b6c1a2182
|
Fix Issue and ExternalIssue reference specs
|
2015-04-20 13:01:45 -04:00 |
|
Robert Speicher
|
b0ea7b3b3d
|
Fix cross-project reference specs for new permission check
For simplicity's sake, since we're testing the actual referencing, we
just force the permission check to always be allowed.
|
2015-04-20 13:01:44 -04:00 |
|
Robert Speicher
|
a803cd51eb
|
Check for project read permissions in cross-references
|
2015-04-20 13:01:44 -04:00 |
|
Robert Speicher
|
29604ff2c3
|
Add permission checking to UserReferenceFilter
|
2015-04-20 13:01:43 -04:00 |
|
Robert Speicher
|
189c5347be
|
Add name-based referencing to LabelReferenceFilter
|
2015-04-20 13:01:43 -04:00 |
|
Robert Speicher
|
4cb1cc2b64
|
Make CommitRange and Snippets cross-referable
|
2015-04-20 13:01:42 -04:00 |
|
Robert Speicher
|
d520fe07ad
|
Fix GitlabMarkdownHelper spec
|
2015-04-20 13:01:42 -04:00 |
|