summaryrefslogtreecommitdiff
path: root/lib/gitlab/asciidoc.rb
Commit message (Collapse)AuthorAgeFilesLines
* `current_application_settings` belongs on `Gitlab::CurrentSettings`Sean McGivern2017-08-311-0/+2
| | | | | | | | | | | | | | | | The initializers including this were doing so at the top level, so every object loaded after them had a `current_application_settings` method. However, if someone had rack-attack enabled (which was loaded before these initializers), it would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't have that method. To fix this: 1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need `Object.new.current_application_settings` to work. 2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it like that in several places. 3. Change the initializers to use that new form.
* Fix LaTeX formatting for AsciiDoc wikiJarka Kadlecova2017-05-241-7/+6
|
* Merge branch 'bvl-security-9-1-markup-pipeline'Robert Speicher2017-05-101-4/+4
| | | | | | (security-9-1) Render asciidoc & other markup using banzai in a pipeline See merge request !2098
* Remove unused optional parameter `asciidoc_opts`Toon Claes2017-04-271-8/+4
|
* Refactor MarkupHelperDouwe Maan2017-04-271-7/+1
|
* Cache the rendered README, but post-process on showToon Claes2017-04-271-2/+0
| | | | | | 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.
* Merge branch 'asciidoctor-xss-patch' into 'security' Robert Speicher2017-02-151-0/+3
| | | | | Add sanitization filter to asciidocs output to prevent XSS See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2057
* Add support for PlantUML diagrams in Asciidoc.Horacio Sanson2017-01-121-0/+12
| | | | | | | | | | | | | | | | | | | | | This MR enables rendering of PlantUML diagrams in Asciidoc documents. To add a PlantUML diagram all we need is to include a plantuml block like: ``` [plantuml, id="myDiagram", width="100px", height="100px"] -- bob -> alice : ping alice -> bob : pong -- ``` The plantuml block is substituted by an HTML img element with *src* pointing to an external PlantUML server. This MR also add a PlantUML integration section to the Administrator -> Settings page to configure the PlantUML rendering service and to enable/disable it. Closes: #17603
* Don't open Asciidoc module twiceMunken2016-12-151-4/+0
|
* Render math in Asciidoc and Markdown with KaTeX using code blocksMunken2016-12-141-1/+30
|
* Enable display of admonition icons in Asciidoc.Horacio Sanson2016-12-081-1/+1
| | | | | | | | | When rendering Asciidoc documents this merge request enables the diplay of admonition blocks using font icons. This improves the looks of Asciidoc redered files. This uses the font-awesome fonts already present in Gitlab so no large dependencies are required for this to work.
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-1/+0
|
* Fix relative links in other markup formatsben.boeckel/gitlab-ce-fixup-links-in-generic-docsBen Boeckel2016-02-121-3/+1
| | | | | | | | - Apply the RelativeLinkFilter filter to other formats, e.g., reStructuredText so links from the Files view or the Project view work - Remove the AsciidocPipeline pipeline Fixes #3533.
* Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan2015-12-151-1/+1
|
* Use Gitlab::Markdown for Asciidoc and ReferenceExtractor pipelinesDouwe Maan2015-10-141-23/+4
|
* Handle AsciiDoc better, reuse HTML pipeline filters (fixes #9263)Jakub Jirutka2015-05-181-0/+60