Robert Speicher
47982e50c4
Make Pipelines responsible for defining their custom whitelist
...
This allows for future pipelines to more easily define a custom
whitelist.
2016-02-03 17:24:08 -05:00
Robert Speicher
d97742570f
Increase the minimum length for commit SHA matching to 7
...
This is the git default and will help to prevent false positive matches.
Closes #12706
2016-01-29 19:52:29 -05:00
Benedict Etzel
6435f78a8c
Whitelist raw "abbr" elements when parsing Markdown
...
Closes #12517
2016-01-23 20:38:06 +01:00
Douglas Barbosa Alexandre
765a2c7327
Refactoring Banzai::Filter::GollumTagsFilter
2016-01-14 12:09:31 -02:00
Douglas Barbosa Alexandre
a6a5990ee5
Add Banzai::Filter::GollumTagsFilter for parsing Gollum's tags in HTML
2016-01-14 12:09:31 -02:00
Robert Speicher
65308a9c15
Add spec for single-item task lists
2016-01-07 15:25:39 -05:00
Douwe Maan
539b41929b
Milestone reference is a Markdown link
2016-01-07 12:26:05 +01:00
Douwe Maan
0b66151632
Remove icon from milestone reference.
2016-01-05 16:45:53 +01:00
Douwe Maan
fd91b48f24
Merge branch 'master' into milestone-ref
2016-01-05 16:40:23 +01:00
Douwe Maan
a7c424515c
Merge branch 'rs-relative-links-to-root' into 'master'
...
Support a single directory traversal in RelativeLinkFilter
Prior, if we were viewing a blob at
`https://example.com/namespace/project/blob/master/doc/some-file.md ` and
it contained a relative link such as `[README](../README.md)`, the
resulting link when viewing the blob would be:
`https://example.com/namespace/project/blob/README.md ` which omits the
`master` ref, resulting in a 404.
Fixes https://gitlab.com/gitlab-org/release-tools/issues/3
See merge request !2247
2016-01-05 13:32:25 +00:00
Yorick Peterse
054df415f9
Optimize CSS expressions produced by Nokogiri
...
Nokogiri produces inefficient XPath expressions when given CSS
expressions such as "a.gfm". Luckily these expressions can be optimized
quite easily while still achieving the same results.
In the two cases where this optimization is applied the run time has
been reduced from around 170 ms to around 15 ms.
2015-12-31 15:46:47 +01:00
Robert Speicher
d9d2e8a3e8
Support a single directory traversal in RelativeLinkFilter
...
Prior, if we were viewing a blob at
`https://example.com/namespace/project/blob/master/doc/some-file.md ` and
it contained a relative link such as `[README](../README.md)`, the
resulting link when viewing the blob would be:
`https://example.com/namespace/project/blob/README.md ` which omits the
`master` ref, resulting in a 404.
2015-12-30 15:36:59 -05:00
Douwe Maan
672cbbff95
Only allow group/project members to mention @all
2015-12-24 15:33:51 +01:00
Douwe Maan
989131c530
Render milestone links as references
2015-12-24 14:43:07 +01:00
Douwe Maan
7781bda9bd
Move Markdown/reference logic from Gitlab::Markdown to Banzai
2015-12-15 15:51:16 +01:00