summaryrefslogtreecommitdiff
path: root/lib/banzai
Commit message (Collapse)AuthorAgeFilesLines
* Whitelist raw "abbr" elements when parsing MarkdownBenedict Etzel2016-01-231-0/+4
| | | | Closes #12517
* Gracefully handle invalid UTF-8 sequences in Markdown linksfix-error-500-with-invalid-utf8Stan Hu2016-01-201-0/+2
| | | | Closes #6077
* Merge branch 'backport-ee' into 'master' Robert Speicher2016-01-1440-65/+0
|\ | | | | | | | | | | | | Backport two commits from EE Backport part of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/110 See merge request !2424
| * Prevent circular reference error in BanzaiDouwe Maan2016-01-1440-65/+0
| |
* | Update documentation on Banzai::Filter::GollumTagsFilterDouglas Barbosa Alexandre2016-01-141-2/+38
| |
* | Refactoring Banzai::Filter::GollumTagsFilterDouglas Barbosa Alexandre2016-01-141-19/+28
| |
* | Remove GollumTagsPipelineDouglas Barbosa Alexandre2016-01-142-15/+4
| |
* | Use the WikiPipeline when rendering the wiki markdown contentDouglas Barbosa Alexandre2016-01-142-0/+22
| |
* | Add Banzai::Filter::GollumTagsFilter for parsing Gollum's tags in HTMLDouglas Barbosa Alexandre2016-01-141-0/+106
|/
* Fix #9963 reference_filter "Encoding::CompatibilityError" bug with some ↵Jason Lee2016-01-121-2/+2
| | | | complex URL;
* Merge branch 'task-list-class' into 'master' Robert Speicher2016-01-071-4/+9
|\ | | | | | | | | | | | | Properly set task-list class on single item task lists Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4193 See merge request !2330
| * Properly set task-list class on single item task listsDouwe Maan2016-01-071-4/+9
| |
* | Merge branch 'milestone-ref' into 'master' Robert Speicher2016-01-073-17/+44
|\ \ | |/ |/| | | | | | | | | Link to milestone in "Milestone changed" system note Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4141 See merge request !2203
| * Remove icon from milestone reference.Douwe Maan2016-01-051-2/+0
| |
| * Merge branch 'master' into milestone-refDouwe Maan2016-01-058-19/+76
| |\
| * \ Merge branch 'master' into milestone-refDouwe Maan2015-12-253-5/+5
| |\ \
| * | | More escaping!Douwe Maan2015-12-242-5/+5
| | | |
| * | | Render milestone links as referencesDouwe Maan2015-12-243-17/+46
| | | |
| * | | Escape reference link textDouwe Maan2015-12-242-8/+11
| | | |
* | | | Merge branch 'rs-issue-1697' into 'master' Douwe Maan2016-01-061-0/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define a limited set of filters for SingleLinePipeline Removes the following filters from its parent GfmPipeline: - SyntaxHighlightFilter - UploadLinkFilter - TableOfContentsFilter - LabelReferenceFilter - TaskListFilter Closes #1697 See merge request !2257
| * | | | Define a limited set of filters for SingleLinePipeliners-issue-1697Robert Speicher2016-01-051-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the following filters from its parent GfmPipeline: - SyntaxHighlightFilter - UploadLinkFilter - TableOfContentsFilter - LabelReferenceFilter - TaskListFilter Closes #1697
* | | | | Revert "Temporarily disable Markdown caching"Douwe Maan2016-01-061-3/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit d337d5e7137d9b3fd0f9b8890a3ba9296323acc7.
* | | | | Revert "Add DEBUG_BANZAI_CACHE env var to debug Banzai cache issue."Douwe Maan2016-01-061-14/+7
| |_|_|/ |/| | | | | | | | | | | This reverts commit 4b027bc93a7875c3937f6b90ac1049b4a4d72da5.
* | | | Merge branch 'rs-relative-links-to-root' into 'master' Douwe Maan2016-01-051-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | Support a single directory traversal in RelativeLinkFilterrs-relative-links-to-rootRobert Speicher2015-12-301-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Add DEBUG_BANZAI_CACHE env var to debug Banzai cache issue.debug-banzai-cacheDouwe Maan2016-01-041-7/+14
| | | |
* | | | Optimize CSS expressions produced by Nokogiriautocomplete-performanceYorick Peterse2015-12-313-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Don't use delegate to delegate trivial methodsYorick Peterse2015-12-311-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Around 300 ms (in total) would be spent in these delegated methods due to the extra stuff ActiveSupport adds to the compiled methods. Because these delegations are so simple we can just manually define the methods, saving around 275 milliseconds.
* | | | Use XPath for searching link nodesYorick Peterse2015-12-311-2/+2
|/ / / | | | | | | | | | | | | This is a tad faster than letting Nokogiri figure out whether it should evaluate the query as CSS or XPath and then actually evaluating it.
* | | Merge branch 'mention-all' into 'master' Robert Speicher2015-12-274-6/+28
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | Only allow group/project members to mention `@all` Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/3473 See merge request !2205
| * | Only allow group/project members to mention `@all`Douwe Maan2015-12-244-6/+28
| |/
* | Escape all the things.Douwe Maan2015-12-245-17/+20
|/
* Backport JIRA serviceDrew Blessing2015-12-181-3/+17
|
* Temporarily disable Markdown cachingDouwe Maan2015-12-161-1/+3
|
* Merge remote-tracking branch 'origin/feature/update-rubocop'Dmitriy Zaporozhets2015-12-162-2/+2
|
* Use lazy reference extractor to get issue's MRslazy-reference-extractorDouwe Maan2015-12-151-1/+1
|
* Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan2015-12-1541-0/+2072