summaryrefslogtreecommitdiff
path: root/lib/rouge
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-1/+1
|
* Revert "Merge branch '65152-selective-highlight' into 'master'"revert-d61dab91Patrick Bajao2019-08-091-2/+2
| | | This reverts merge request !31361
* Support selective highlighting of lines65152-selective-highlightPatrick Bajao2019-08-061-2/+2
| | | | | | | | | | | | Instead of highlighting all lines when not all of them are needed, only highlight specific lines. The `BlobPresenter#highlight` method has been updated to support `since` and `to` params. These params will be used to limit the content to be highlighted. Modify `Gitlab::Highlight` to support `since` param which will then be used to determine the starting line number.
* Enable even more frozen string in lib/**/*.rbgfyoung2018-10-082-0/+4
| | | | | | | | | | | | | | | | | | | | Enables frozen string for the following files: * lib/generators/**/*.rb * lib/gitaly/**/*.rb * lib/google_api/**/*.rb * lib/haml_lint/**/*.rb * lib/json_web_token/**/*.rb * lib/mattermost/**/*.rb * lib/microsoft_teams/**/*.rb * lib/object_storage/**/*.rb * lib/omni_auth/**/*.rb * lib/peek/**/*.rb * lib/rouge/**/*.rb * lib/rspec_flaky/**/*.rb * lib/system_check/**/*.rb Partially addresses #47424.
* Resolve Naming/UncommunicativeMethodLin Jen-Shin2018-07-091-1/+1
|
* Add CommonMark markdown enginereplace_redcarpet_with_cmarkblackst0ne2018-03-071-0/+20
|
* Add support of MermaidVitaliy @blackst0ne Klachkov2017-11-222-18/+0
|
* remove the rouge copypasta and add notes to refactorhttp://jneen.net/2017-06-072-28/+4
|
* Document tag option and clarify specDouwe Maan2017-03-141-4/+3
|
* Copy code as GFM from diffs, blobs and GFM code blocksDouwe Maan2017-03-141-2/+3
|
* PlantUML support for MarkdownHoracio Sanson2017-02-031-0/+21
| | | | | | | | | | | Allow rendering of PlantUML diagrams in Markdown documents using fenced blocks: ```plantuml Bob -> Sara : Hello Sara -> Bob : Go away ``` Closes: #4048
* Render math in Asciidoc and Markdown with KaTeX using code blocksMunken2016-12-141-3/+3
|
* Better location for math lexerMunken2016-12-081-0/+21
|
* Trim extra displayed carriage returns in diffs and files with CRLFsStan Hu2016-08-011-1/+1
| | | | Closes #20440
* use %(...) and %[...] in favor of %<...>feature.rouge-20http://jneen.net/2016-07-141-2/+2
|
* eliminate the final newline in <pre> blockshttp://jneen.net/2016-07-141-1/+5
|
* no longer need cgihttp://jneen.net/2016-07-141-2/+0
|
* use the new token_lines interface to format lineshttp://jneen.net/2016-07-141-70/+11
|
* kill the :cssclass optionhttp://jneen.net/2016-07-141-2/+0
|
* trim more dead codehttp://jneen.net/2016-07-141-18/+3
|
* remove the dead linenos and linenostart optionshttp://jneen.net/2016-07-141-44/+2
| | | | and the methods that relied on them
* kill the nowrap option in HTMLGitlab itselfhttp://jneen.net/2016-07-141-11/+1
|
* remove the unused inline_theme featurehttp://jneen.net/2016-07-141-10/+2
|
* deprecate @anchorlinenoshttp://jneen.net/2016-07-141-10/+0
|
* Enable Style/IdenticalConditionalBranches Rubocop copGrzegorz Bizon2016-07-081-10/+6
|
* Fixed Rubocop offensesGabriel Mazetto2015-12-151-1/+1
|
* Fix diff syntax highlightingStan Hu2015-08-101-20/+21
| | | | | | Refactored HTML parser to avoid duplication of newline parsing. Closes #2235
* Fix the `inline_theme` option for the Rouge formatterrs-fix-rouge-inline-themeRobert Speicher2015-08-011-1/+1
|
* Fix multi-line syntax highlightingStan Hu2015-07-301-2/+10
| | | | | | | | HTML span elements only apply to a single line, and in the case of multi-line comments, the highlighting was dropped as a result. Ensure that each line has the proper styling to fix this. Closes #1577
* Add HTMLGitlab formatterStefan Tatschner2015-07-291-0/+168
This custom formatter for rouge is needed to generate HTML output specifically for gitlab. Since its usecase is mostly suitable for gitlab it had been rejected upstream: https://github.com/jneen/rouge/pull/268 Thanks a lot to @stanhu, @jneen and @tsigo for review!