summaryrefslogtreecommitdiff
path: root/lib/gitlab/markdown.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan2015-12-151-115/+0
|
* Move Markdown filters and pipelines into folders.Douwe Maan2015-11-191-44/+36
|
* Use correct var nameDouwe Maan2015-10-221-1/+1
|
* Fix Markdown XHTML context paramDouwe Maan2015-10-221-9/+10
|
* Make pipelines actually make senseDouwe Maan2015-10-211-178/+38
|
* Remove unused Gitlab::Markdown#cached? methodDouwe Maan2015-10-141-5/+0
|
* Cache rendered contents of issues, MRs and notesDouwe Maan2015-10-141-1/+11
|
* Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-141-0/+2
|\
| * Fix: Images cannot show when projects' path was changeduploads_path_fixValery Sizov2015-10-141-0/+2
| |
* | Use Gitlab::Markdown for Asciidoc and ReferenceExtractor pipelinesDouwe Maan2015-10-141-86/+140
| |
* | Enable caching of Gitlab::Markdown rendered resultDouwe Maan2015-10-141-10/+25
| |
* | Use Gitlab::Markdown.render with :pipeline option rather than different methodsDouwe Maan2015-10-141-124/+112
| |
* | Pass project to RedactorFilterDouwe Maan2015-10-131-3/+8
| |
* | Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-071-1/+1
|\ \ | |/
| * Fix emoji URLs in Markdown when relative_url_root is usedStan Hu2015-09-061-1/+1
| | | | | | | | | | | | | | | | Also adds the ability to run rspecs with relative_url_defined on the enviornment. For example: RELATIVE_URL_ROOT=/gitlab rspec Closes #1728
* | Basic support for an Atom-specific rendering pipelineRobert Speicher2015-09-031-51/+60
| |
* | Add post_process method to Gitlab::MarkdownRobert Speicher2015-09-011-0/+22
| |
* | Remove `current_user` context from markdown and gfm helpersRobert Speicher2015-09-011-1/+0
| | | | | | | | These helpers are no longer dependent on the current user state. Hooray!
* | Add RedactorFilterRobert Speicher2015-09-011-0/+1
|/
* Move REDCARPET_OPTIONS to a private methodRobert Speicher2015-08-311-14/+16
| | | | | There wasn't really a reason to have them as a constant, and we were getting "already defined" warnings which are always annoying.
* Reference filters no longer take a custom class context optionRobert Speicher2015-08-271-1/+0
|
* Decouple Gitlab::Markdown from the GitlabMarkdownHelperRobert Speicher2015-08-271-8/+54
| | | | | This module is now the sole source of knowledge for *how* we render Markdown (and GFM).
* Remove the `gfm_with_options` helperrs-remove-gfm_with_optionsRobert Speicher2015-08-121-11/+1
| | | | It was redundant because `gfm` also took options.
* Reuse HTML Pipeline object in Markdown parserKamil Trzcinski2015-06-301-2/+2
| | | | The patches reduces pressure on GC and reduces markdown processing time
* Add a `pipeline` context option for SanitizationFilterRobert Speicher2015-06-021-0/+3
| | | | | When this option is `:description`, we use a more restrictive whitelist. This is used for Project and Group description fields.
* Add ExternalLinkFilter to Markdown pipeliners-dont-follow-meRobert Speicher2015-05-271-0/+2
| | | | Forces a `rel="nofollow"` attribute on all external links.
* Subclass TaskList::Filter to fix a bugrs-issue-1645Robert Speicher2015-05-201-2/+2
| | | | | | | | | Instead of using a fork, we subclass the filter and only apply the `task-list` class to list items that actually are task lists. Closes #1645 See https://github.com/github/task_list/pull/60
* Merge branch 'dashboard-references' into 'master'Dmitriy Zaporozhets2015-05-151-7/+9
|\ | | | | | | | | | | | | | | | | | | | | | | Fix reference links in dashboard activity and ATOM feeds. References like `@user` were not linked on the dashboard activity feed and in Atom feeds, because the reference parser depends on `@project` which isn't set in those situations. This MR passes the project in question to the reference parsers in an option. cc @rspeicher See merge request !653
| * Fix reference links in dashboard activity and ATOM feeds.dashboard-referencesDouwe Maan2015-05-141-7/+9
| |
* | Minor RelativeLinkFilter cleanuprs-relative-link-filterRobert Speicher2015-05-131-2/+2
|/
* RelativeLinkFilter: refactor according to suggestions by @tsigoJakub Jirutka2015-05-111-1/+0
|
* Extract handling of relative file links to RelativeLinkFilterJakub Jirutka2015-05-111-1/+9
|
* Remove all references to `parse_tasks`Robert Speicher2015-05-061-28/+3
|
* Add TaskList::Filter to pipelineRobert Speicher2015-05-061-4/+7
|
* Update the Gitlab::Markdown docsRobert Speicher2015-04-301-25/+1
|
* Add Gitlab::Markdown::SanitizationFilterRobert Speicher2015-04-301-31/+3
| | | | | This just extends the HTML::Pipeline::SanitizationFilter with our custom whitelist.
* Add Gitlab::Markdown::AutolinkFilterRobert Speicher2015-04-301-1/+3
|
* Add Gitlab::Markdown::TableOfContentsFilterRobert Speicher2015-04-301-0/+5
| | | | Removes header and table of contents processing from Redcarpet renderer.
* Provide autoload paths for filters to prevent circular dependencyRobert Speicher2015-04-231-3/+14
|
* Update Gitlab::Markdown to use the :new: EmojiFilter :sparkles:Robert Speicher2015-04-211-12/+16
| | | | Removes emoji-centric tests from GFM specs :boom:
* Add current_user to filter contextRobert Speicher2015-04-201-0/+1
|
* Run SanitizationFilter before our reference filtersRobert Speicher2015-04-201-2/+7
|
* Reference filters :sparkles:Robert Speicher2015-04-201-283/+41
| | | | | Commit ranges, commits, external issues, issues, labels, merge requests, snippets, users.
* Merge branch 'fix-label-color' into 'master'Dmitriy Zaporozhets2015-04-201-16/+16
|\ | | | | | | | | | | | | | | Parse GFM references after sanitizing Parse GFM references - labels, issues, MRs, etc. - after calling the HTML Pipeline `SanitizationFilter` so that we can use non-whitelisted attributes like `style`. See #2188. See merge request !1745
| * Fix GFM extractionsVinnie Okada2015-04-171-13/+13
| | | | | | | | Extract and re-insert links after sanitizing user markup.
| * Parse GFM references after sanitizingVinnie Okada2015-03-281-3/+3
| | | | | | | | | | | | Parse GFM references - labels, issues, MRs, etc. - after calling the HTML Pipeline `SanitizationFilter` so that we can use non-whitelisted attributes like `style`.
* | Merge branch 'reference-access-control' into 'master'Dmitriy Zaporozhets2015-04-131-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | Only allow users to reference groups, projects, issues, MRs, commits they have access to. Addresses https://dev.gitlab.org/gitlab/gitlabhq/issues/2183. See merge request !1742
| * | Don't require user to every gfm call.Douwe Maan2015-04-031-21/+21
| | |
| * | Fix errors.Douwe Maan2015-04-021-2/+2
| | |
| * | Only allow user to reference objects they have access to.Douwe Maan2015-04-021-18/+20
| | |