An error occurred fetching the project authors.
- 13 Sep, 2018 1 commit
-
-
Brett Walker authored
By default, we now strip images in the 'first_line_in_markdown' method. This keeps images from being displayed in the one-liner of both todo and project activity panels. Although not currently used, we allow images to be preserved with the allow_images: true options.
-
- 07 Sep, 2018 1 commit
-
-
gfyoung authored
Partially addresses #47424.
-
- 05 Sep, 2018 4 commits
-
-
Brett Walker authored
-
Brett Walker authored
-
Brett Walker authored
-
Brett Walker authored
-
- 06 Jul, 2018 1 commit
-
-
Brett Walker authored
-
- 11 Apr, 2018 1 commit
-
-
Yorick Peterse authored
This refactors the Markdown pipeline so it supports the rendering of multiple documents that may belong to different projects. An example of where this happens is when displaying the event feed of a group. In this case we retrieve events for all projects in the group. Previously we would group events per project and render these chunks separately, but this would result in many SQL queries being executed. By extending the Markdown pipeline to support this out of the box we can drastically reduce the number of SQL queries. To achieve this we introduce a new object to the pipeline: Banzai::RenderContext. This object simply wraps two other objects: an optional Project instance, and an optional User instance. On its own this wouldn't be very helpful, but a RenderContext can also be used to associate HTML documents with specific Project instances. This work is done in Banzai::ObjectRenderer and allows us to reuse as many queries (and results) as possible.
-
- 11 Jan, 2018 1 commit
-
-
🙈 jacopo beschi 🙉 authored
-
- 06 Dec, 2017 1 commit
-
-
Jarka Kadlecova authored
-
- 04 Dec, 2017 1 commit
-
-
haseeb authored
-
- 19 Nov, 2017 1 commit
-
-
- 16 Nov, 2017 1 commit
-
-
Jacopo authored
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
-
- 06 Nov, 2017 2 commits
-
-
Francisco Javier López authored
-
Tim Zallmann authored
-
- 06 Sep, 2017 1 commit
-
-
Tiago Botelho authored
-
- 18 May, 2017 1 commit
-
-
Toon Claes authored
The ProjectCacheWorker refreshes cache periodically, but it runs outside Rails context. So include the ActionView helpers so the `content_tag` method is available.
-
- 10 May, 2017 2 commits
-
-
Rémy Coutable authored
Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
Robert Speicher authored
(security-9-1) Render asciidoc & other markup using banzai in a pipeline See merge request !2098
-
- 28 Apr, 2017 1 commit
-
-
Douwe Maan authored
-
- 27 Apr, 2017 9 commits
-
-
Toon Claes authored
-
Toon Claes authored
-
Toon Claes authored
-
Toon Claes authored
-
Toon Claes authored
-
Douwe Maan authored
-
Toon Claes authored
Because the post-processing of the rendered README is dependent on the context (i.e. the current user), do the post-processing when the README is being displayed.
-
Toon Claes authored
-
Toon Claes authored
It does more than solely GitLab Markdown, so rename to MarkupHelper.
-
- 26 Apr, 2017 1 commit
-
-
Jarka Kadlecova authored
-
- 14 Mar, 2017 2 commits
-
-
Douwe Maan authored
-
-
- 03 Jan, 2017 1 commit
-
-
James Lopez authored
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
-
- 02 Dec, 2016 1 commit
-
-
Oswaldo Ferreira authored
-
- 07 Oct, 2016 2 commits
-
-
Nick Thomas authored
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.
-
Nick Thomas authored
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.
-
- 21 Jun, 2016 1 commit
-
-
Yorick Peterse authored
The method Banzai::Renderer.pre_process would always be called, regardless of whether the Markdown to render was already cached or not. In cache the document _was_ cached the output of the pre-processing pipeline was ignored resulting in it doing nothing but wasting CPU cycles. This commit moves Banzai::Renderer.pre_process into Banzai::Renderer.render_result so that it's _only_ used when needed.
-
- 17 Jun, 2016 1 commit
-
-
Phil Hughes authored
-
- 09 Jun, 2016 1 commit
-
-
Timothy Andrew authored
- Need to pass in a `page_slug` to the filter, so it can rewrite based on the current page (all links are rewritten to the level of the app root). - The earlier `markdown_preview` endpoint was at the level of the wiki. We need to know the current page (for rewriting, as above), so this commit moves the endpoint to the level of a wiki page. - Fix all tests
-
- 03 Jun, 2016 1 commit
-
-
James Lopez authored
This reverts commit 3e991230.
-