summaryrefslogtreecommitdiff
path: root/lib/banzai/filter
Commit message (Collapse)AuthorAgeFilesLines
* Catch all URI errors in ExternalLinkFilterdm-catch-uri-errorsDouwe Maan2017-05-181-1/+1
|
* Merge branch 'bvl-security-9-1-validate-urls-in-markdown-using-uri'Robert Speicher2017-05-101-18/+18
| | | | | | (security-9-1) Add correct `rel` attributes to external links when rendering markdown See merge request !2097
* Merge branch 'blackst0ne/gitlab-ce-fix_emoji_parser'Sean McGivern2017-04-271-1/+4
|\
| * Fix rendering emoji inside a stringblackst0ne2017-04-251-1/+4
| |
* | Merge branch 'issuable-state-custom-links' into 'master' Sean McGivern2017-04-201-2/+2
|\ \ | | | | | | | | | | | | | | | | | | Do not append issuable state to links with custom anchor Closes #30916 See merge request !10782
| * | Do not append issuable state to links with custom anchorissuable-state-custom-linksAdam Niedzielski2017-04-191-2/+2
| | | | | | | | | | | | | | | Closes #30916 Change the presentation from [closed] to (closed)
* | | Merge branch 'plantuml-filter-after-highlight' into 'master' Sean McGivern2017-04-201-4/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Fix PlantUML integration in GFM Closes #30557 See merge request !10651
| * | Fix PlantUML integration in GFMplantuml-filter-after-highlightAdam Niedzielski2017-04-191-4/+4
| | | | | | | | | | | | | | | Fixes #30557 Use "lang" attribute instead of "class" in PlantumlFilter.
* | | Display issuable state only in notes and issuable descriptionAdam Niedzielski2017-04-191-0/+2
|/ / | | | | | | Closes #30964
* | Fix appending state to issuable referencesfix-appending-state-to-issuable-referencesAdam Niedzielski2017-04-131-2/+2
|/ | | | | | | Closes #30874. Ignore nodes with no children. Append directly to the node instead of the last child of the node to avoid inheriting formatting from the last child
* Add indication for closed or merged issuables in GFMadam-finish-5993-closed-issuableAdam Buckland2017-04-072-1/+36
| | | | | | | | | | | | | | | Example: for issues that are closed, the links will now show '[closed]' following the issue number. This is done as post-process after the markdown has been loaded from the cache as the status of the issue may change between the cache being populated and the content being displayed. In order to avoid N+1 queries problem when rendering notes ObjectRenderer populates the cache of referenced issuables for all notes at once, before the post processing phase. As a part of this change, the Banzai BaseParser#grouped_objects_for_nodes method has been refactored to return a Hash utilising the node itself as the key, since this was a common pattern of usage for this method.
* Merge branch '30125-markdown-security'Robert Speicher2017-04-053-24/+2
| | | | | | Remove class from SanitizationFilter whitelist See merge request !2079
* Merge branch 'make_user_mentions_case_insensitive' into 'master' Sean McGivern2017-03-291-2/+2
|\ | | | | | | | | | | | | Make user mentions case-insensitive Closes #24493 See merge request !10285
| * Make user mentions case-insensitiveblackst0ne2017-03-291-2/+2
| |
* | Get rid of a third N+1 query problemRémy Coutable2017-03-281-1/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Get rid of second N+1 query problemRémy Coutable2017-03-281-0/+4
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Get rid of a first N+1 query problemRémy Coutable2017-03-281-2/+21
|/ | | | | | | Use the same approach in Banzai::Filter::MergeRequestReferenceFilter as we do with issues. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'fix-links-target-blank' into 'security'Jacob Schatz2017-03-202-2/+3
| | | | | | Adds rel="noopener noreferrer" to all links with target="_blank" See merge request !2071
* Use Enumerable#index_by where possibledm-use-index-byDouwe Maan2017-03-162-10/+2
|
* Copy code as GFM from diffs, blobs and GFM code blocksDouwe Maan2017-03-141-12/+1
|
* Merge branch '26371-native-emojis-v3' into 'master' Filipa Lacerda2017-03-071-53/+11
|\ | | | | | | | | | | | | Add emoji images - Base Native Unicode Emojis Closes #26371 See merge request !9569
| * Use native unicode emojisEric Eastwood2017-03-061-53/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - gl_emoji for falling back to image/css-sprite when the browser doesn't support an emoji - Markdown rendering (Banzai filter) - Autocomplete - Award emoji menu - Perceived perf - Immediate response because we now build client-side - Update `digests.json` generation in gemojione rake task to be more useful and include `unicodeVersion` MR: !9437 See issues - #26371 - #27250 - #22474
* | SanitizationFilter allows html5 details and summary (Issue #21605)James2017-03-061-0/+4
|/ | | | Also adds details/summary tags to Copy-as-GFM
* Use full group name in GFM group reference titledm-group-reference-full-nameDouwe Maan2017-03-011-1/+1
|
* Merge branch '20890-comment-image-inline' into 'master' 28711-cherry-picking-ui-regressions-8-17-0Robert Speicher2017-02-271-8/+1
|\ | | | | | | | | | | | | Fix inline comment images by removing wrapper #20890 Closes #20890 See merge request !5804
| * Fix inline comment images by removing wrapper #20890Jared Deckard2016-08-131-8/+1
| |
* | Revert "Enable Style/BarePercentLiterals"Douwe Maan2017-02-233-6/+6
| | | | | | | | This reverts commit 96bef54154e669f9a3e92c3a4bc76c0be3a52e48.
* | Fix code for copsDouwe Maan2017-02-233-15/+18
| |
* | Enable Style/ConditionalAssignmentDouwe Maan2017-02-233-9/+9
| |
* | Enable Style/BarePercentLiteralsDouwe Maan2017-02-233-6/+6
| |
* | Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
| |
* | No more and/orDouwe Maan2017-02-211-1/+1
| |
* | Only yield valid references in ReferenceFilter.references_inonly-yield-valid-reference-matchesDouwe Maan2017-02-161-1/+6
| |
* | Add GFM support to nested groupsdz-nested-groups-gfm-altDmitriy Zaporozhets2017-02-132-4/+4
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | PlantUML support for MarkdownHoracio Sanson2017-02-031-0/+39
| | | | | | | | | | | | | | | | | | | | | | Allow rendering of PlantUML diagrams in Markdown documents using fenced blocks: ```plantuml Bob -> Sara : Hello Sara -> Bob : Go away ``` Closes: #4048
* | Merge branch 'master' into copy-as-mdDouwe Maan2017-01-252-2/+6
|\ \ | | | | | | | | | | | | # Conflicts: # app/assets/javascripts/lib/utils/common_utils.js.es6
| * | address commentsJarka Kadlecova2017-01-251-0/+1
| | |
| * | make mentions working when project not specifiedJarka Kadlecova2017-01-182-3/+6
| | |
* | | Merge branch 'master' into copy-as-mdDouwe Maan2017-01-191-3/+5
|\ \ \ | |/ / | | | | | | | | | # Conflicts: # app/assets/javascripts/lib/utils/common_utils.js.es6
| * | Correct documentation for `data_attribute` methodrs-data_attribute-cleanupRobert Speicher2017-01-161-3/+5
| | | | | | | | | | | | Also break up a long line, just 'cause.
* | | Fix SyntaxHighlightFilter specDouwe Maan2017-01-171-0/+1
| | |
* | | Copying a rendered issue/comment will paste into GFM textareas as actual GFMDouwe Maan2017-01-164-6/+9
|/ /
* | Merge branch 'inline-math-dollar' into 'master' Robert Speicher2016-12-221-8/+3
|\ \ | | | | | | | | | | | | Don't render inline math when dollar signs are inside markup See merge request !8259
| * | Don't render inline math when dollar signs are inside markupinline-math-dollarDouwe Maan2016-12-221-8/+3
| | |
* | | Use `ref` variable24224-fix-project-ref-cacheDouwe Maan2016-12-221-1/+1
| | |
* | | Fix lookup of project by unknown ref when caching is enabledDouwe Maan2016-12-221-4/+15
|/ /
* | 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-151-0/+51
|\ \ | | | | | | | | | | | | | | | | | | 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-143-30/+51
| | |
| * | Better location for math lexerMunken2016-12-081-22/+0
| | |