summaryrefslogtreecommitdiff
path: root/lib/banzai
Commit message (Collapse)AuthorAgeFilesLines
* Don't render inline math when dollar signs are inside markupinline-math-dollarDouwe Maan2016-12-221-8/+3
|
* Filter protocol-relative URLs in ExternalLinkFilter. Fixes issue #22742.Makoto Scott-Hinkle2016-12-211-1/+1
|
* Merge branch 'katex-math' into 'master' Sean McGivern2016-12-152-0/+52
|\ | | | | | | | | | | | | Render math in Asciidoc and Markdown with KaTeX using code blocks Closes #13690 and #13180 See merge request !8003
| * Render math in Asciidoc and Markdown with KaTeX using code blocksMunken2016-12-144-31/+52
| |
| * Better location for math lexerMunken2016-12-081-22/+0
| |
| * Removed alias and filenamesMunken2016-12-081-2/+0
| |
| * Hacked in Math LexerMunken2016-12-081-0/+27
| |
| * Math works for inline syntaxMunken2016-12-081-2/+0
| |
| * Working inline math filterMunken2016-12-082-0/+30
| |
* | Merge branch 'dz-nested-group-improvements-2' into 'master' Sean McGivern2016-12-131-1/+1
|\ \ | | | | | | | | | | | | Minor improvements to nested groups code See merge request !8011
| * | Rename Routable.where_paths_in to Routable.where_full_path_indz-nested-group-improvements-2Dmitriy Zaporozhets2016-12-111-1/+1
| |/ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'unescape-relative-path' into 'master' Gabriel Mazetto2016-12-121-8/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid escaping relative links in Markdown twice ## What does this MR do? Avoid escaping relative links in Markdown twice. ## Why was this MR needed? Relative links with special characters (e.g. spaces) were escaped twice. ## What are the relevant issue numbers? closes #25191, #25318 See merge request !7940
| * Avoid escaping relative links in Markdown twice (!7940)winniehell2016-12-121-8/+6
| |
* | Add shorthand support to gitlab markdown referencesOswaldo Ferreira2016-12-025-60/+41
|/
* remove underscore from user-content id namespace22781-user-generated-permalinksMike Greiling2016-11-301-1/+1
|
* add transparent namespace to all user-generated anchors in GitLab flavored ↵Mike Greiling2016-11-301-3/+5
| | | | markdown
* Merge branch 'markdown-xss-fix-option-2.1' into 'security'Douwe Maan2016-11-091-10/+28
| | | | | | | | | | | | Fix for HackerOne XSS vulnerability in markdown This is an updated blacklist patch to fix https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2007. No text is removed. Dangerous schemes/protocols and invalid URIs are left intact but not linked. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23153 See merge request !2015 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'issue_23548_dev' into 'master'Douwe Maan2016-11-099-14/+78
| | | | | | | | | | | | | | | | | | | | | disable markdown in comments when referencing disabled features fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23548 This MR prevents the following references when tool is disabled: - issues - snippets - commits - when repo is disabled - commit range - when repo is disabled - milestones This MR does not prevent references to repository files, since they are just markdown links and don't leak information. See merge request !2011 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Split out markdown cache storage into a separate methodNick Thomas2016-11-041-1/+5
|
* Fix Markdown styling inside reference linkspanjan2016-11-015-42/+44
| | | | Fixes: https://gitlab.com/gitlab-org/gitlab-ce/issues/18096
* Pass user instance to Labels::FindOrCreateService or skip_authorization: trueadam-fix-labels-find-or-createAdam Niedzielski2016-10-281-1/+1
| | | | | | Do not pass project.owner because it may return a group and Labels::FindOrCreateService throws an error in this case. Fixes #23694.
* Escape ref and path for relative links (!6050)winniehell2016-10-241-2/+2
|
* Merge branch 'feature/group-level-labels' into 'master' Douwe Maan2016-10-191-5/+46
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add group level labels ## What does this MR do? Add group level labels. ## Are there points in the code the reviewer needs to double check? * `LabelsFinder` * `Gitlab::Gfm::ReferenceRewriter` * `Banzai::Filter::LabelReferenceFilter` ## Why was this MR needed? We'll be adding more feature that allow you to do cross-project management of issues. ## Screenshots (if relevant) * Group Labels ![Group Labels](/uploads/2244c06ad68eae4fb246fb4c81bf8060/2.png) * Project Labels ![Project Labels](/uploads/c5839516d2282b51f7418d9dadbeceb4/1.png) * Expanded references for group labels when moving issue to another project ![Expanded references for group labels when moving issue to another project](/uploads/0c9ab248a8420d4978d59349ae3d42e5/3.png) ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added - Tests - [x] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? #19997 See merge request !6425
| * Reuse LabelsFinder on Banzai::Filter::LabelReferenceFilterDouglas Barbosa Alexandre2016-10-191-7/+1
| |
| * Fix replace label references with links for group labelsDouglas Barbosa Alexandre2016-10-191-1/+7
| |
| * Reuse LabelsFinder on Banzai::Filter::LabelReferenceFilterDouglas Barbosa Alexandre2016-10-191-7/+5
| |
| * Unfold references for group labels when moving issue to another projectDouglas Barbosa Alexandre2016-10-191-3/+36
| |
| * Add ProjectLabel modelDouglas Barbosa Alexandre2016-10-191-1/+1
| |
| * Replace label references with links for group labelsDouglas Barbosa Alexandre2016-10-191-3/+13
| |
* | Merge branch 'issue_828' into 'master' Douwe Maan2016-10-193-15/+38
|\ \ | |/ |/| | | | | | | | | Prevent wrong markdown on issue ids when project has Jira service activated fixes gitlab-org/gitlab-ee#828 See merge request !6728
| * Prevent wrong markdown on issue ids when project has Jira service activatedissue_828Felipe Artur2016-10-193-15/+38
| |
* | Merge branch 'fix-escaping' into 'master' Sean McGivern2016-10-191-1/+1
|\ \ | |/ |/| | | | | fix: commit messages being double-escaped in activities tab See merge request !6937
| * fix: commit messages being double-escaped in activies tabamaia2016-10-181-1/+1
| |
* | Add Nofollow for uppercased scheme in external urlthe-undefined2016-10-181-4/+30
|/ | | | | | | | | | | | Ensure that external URLs with non-lowercase protocols will be attributed with 'nofollow noreferrer' and open up in a new window. Covers the edge cases to skip: - HTTPS schemes - relative links Closes #22782
* Add RTL support to markdown rendererEbrahim Byagowi2016-10-162-1/+18
|
* Use module_function in Banzai::Rendererfix-banzai-renderer-instrumentationYorick Peterse2016-10-141-3/+1
| | | | | | | Using `extend self` prevents GitLab Performance Monitoring from being able to track class methods. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23347
* Convert UTF-8 Emoji to Gitlab emojiJohan H2016-10-131-18/+21
|
* Convert unicode emojis to images.henrik2016-10-111-8/+46
|
* HTMLEntityFilter -> HtmlEntityFilterNick Thomas2016-10-102-2/+2
|
* Enable CacheMarkdownField for the remaining modelsNick Thomas2016-10-072-0/+13
| | | | | | | | | | | | | | | | | | | | This commit alters views for the following models to use the markdown cache if present: * AbuseReport * Appearance * ApplicationSetting * BroadcastMessage * Group * Issue * Label * MergeRequest * Milestone * Project At the same time, calls to `escape_once` have been moved into the `single_line` Banzai pipeline, so they can't be missed out by accident and the work is done at save, rather than render, time.
* Use CacheMarkdownField for notesNick Thomas2016-10-072-32/+26
|
* Add markdown cache columns to the database, but don't use them yetNick Thomas2016-10-071-0/+28
| | | | | | | | | | | | This commit adds a number of _html columns and, with the exception of Note, starts updating them whenever the content of their partner fields changes. Note has a collision with the note_html attr_accessor; that will be fixed later A background worker for clearing these cache columns is also introduced - use `rake cache:clear` to set it off. You can clear the database or Redis caches separately by running `rake cache:clear:db` or `rake cache:clear:redis`, respectively.
* Merge branch 'kradydal/gitlab-ce-20989-disable-all-for-non-project-members'Rémy Coutable2016-10-051-5/+9
|\ | | | | | | See !6474.
| * Fix test, add author attribute to all testsKatarzyna Kobierska2016-10-031-2/+2
| |
| * Prevent rendering the link when the author has no accessKatarzyna Kobierska2016-10-031-5/+9
| |
* | Removed puts code :see_no_evil:code-blocks-vue-prePhil Hughes2016-10-041-1/+0
| |
* | Adds v-pre to code blocks in commentsPhil Hughes2016-10-042-2/+3
| | | | | | | | Closes #22911
* | Replace talk_list patch with a patched forkJared Deckard2016-09-301-22/+0
|/
* Use `Module#prepend` instead of `alias_method_chain`Andre Guedes2016-09-301-5/+7
|
* AbstractReferenceFilter caches current project_ref on RequestStore when active22679-avoid-abstract-reference-filter-project-requestsPaco Guzman2016-09-282-5/+21
| | | | | | Before we weren’t caching current_project_ref because normally the reference to the current project doesn’t include the path with namespace. But now we store the current project in the projects reference cache to be used for the same filter when accessing using path with namespace of for subsequent filters executed on the cache.