Commit graph

15 commits

Author SHA1 Message Date
Constance Okoghenun
e3eb241f5d Added tightLists option to copy_as_gfm markdown serializer
This removes extraneous newlines when copying comments
with an ordered list.
2019-03-05 18:08:39 +00:00
Tim Zallmann
81429f6193 Reduce Bundle Size by lazy loading markdown-it 2019-02-06 12:58:29 +00:00
Jan Provaznik
b2c70230b3 Remove Redcarpet markdown engine
This engine was replaced with CommonMarker in 11.4, it was deprecated
since then.
2019-02-04 12:48:35 +01:00
Gabriel Mazetto
83adf64831 Fix rubocop violations 2019-01-31 21:31:25 +01:00
Constance Okoghenun
645f7ee86b
[master] Resolve "[Security] Stored XSS via KaTeX" 2019-01-31 16:52:49 +01:00
Douwe Maan
43005f2df2
Allow suggestions to be copied and pasted as GFM
Supports both suggestions transformed from GFM to HTML and from GFM to
HTML to Vue component.
2019-01-25 18:40:36 +01:00
Douwe Maan
8a03dbf8b7
Use nodes and marks to power Copy-as-GFM
The spec needed to be updated because in some cases the resulting
Markdown is slightly different, though equally valid.
2019-01-24 12:06:53 +01:00
Andrew Harmon
a763d5fb09 Update spec/features/markdown/math_spec.rb
Refer to https://github.com/KaTeX/KaTeX/pull/1700 for additional details.
2019-01-18 18:55:05 +00:00
Cindy Pallares
c4bb0a116e
Merge branch 'security-mermaid-xss' into 'master'
[master] Fix XSS in mermaid diagrams

See merge request gitlab/gitlabhq!2597
2018-11-28 19:09:28 -05:00
Alejandro Rodríguez
a99bf447a2 Remove Gitlab::Git::Repository#rugged and Gollum code
Cleanup code, and refactor tests that still use Rugged. After this, there should
be no Rugged code that access the instance's repositories on non-test
environments. There is still some rugged code for other tasks like the
repository import task, but since it doesn't access any repository storage path
it can stay.
2018-10-02 16:34:28 -03:00
Mark Chao
a63bce1a4b Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
Brett Walker
f79410fe17 enable CommonMark as the default 2018-06-14 08:30:16 +00:00
Robert Speicher
9c3c198daf
Combine multiple it blocks to improve Markdown feature spec times
The setup of each spec is too expensive to perform as many times as we
were doing it. Reduced duration from 255 seconds to 43.
2018-06-05 15:03:05 -05:00
Mike Greiling
c1708514f5
move render_gfm into behaviors directory 2018-03-19 23:07:46 -05:00
Douwe Maan
603fa7c141 Merge branch 'fix-mermaid-xss' into 'security-10-4'
[10.4] Fix stored XSS in code blocks
2018-02-09 12:13:44 -06:00