Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move pre_process into render_resultremove-banzai-pre-process | Yorick Peterse | 2016-06-21 | 1 | -2/+0 |
| | | | | | | | | | | | The method Banzai::Renderer.pre_process would always be called, regardless of whether the Markdown to render was already cached or not. In cache the document _was_ cached the output of the pre-processing pipeline was ignored resulting in it doing nothing but wasting CPU cycles. This commit moves Banzai::Renderer.pre_process into Banzai::Renderer.render_result so that it's _only_ used when needed. | ||||
* | Updated design of markdown buttons | Phil Hughes | 2016-06-17 | 1 | -0/+13 |
| | |||||
* | Hook up the updated `WikiLinkFilter` to the wiki controllers. | Timothy Andrew | 2016-06-09 | 1 | -1/+1 |
| | | | | | | | | | - Need to pass in a `page_slug` to the filter, so it can rewrite based on the current page (all links are rewritten to the level of the app root). - The earlier `markdown_preview` endpoint was at the level of the wiki. We need to know the current page (for rewriting, as above), so this commit moves the endpoint to the level of a wiki page. - Fix all tests | ||||
* | Enable Performance/StartWith cop and fix offensesrs-start-with | Robert Speicher | 2016-05-23 | 1 | -1/+1 |
| | |||||
* | Remove `random_markdown_tip` helperrs-remove-markdown-tips | Robert Speicher | 2016-04-09 | 1 | -23/+0 |
| | | | | Only usage got removed in !3442 | ||||
* | Add a PreProcessPipeline | Robert Speicher | 2016-03-02 | 1 | -0/+2 |
| | |||||
* | Fix relative links in other markup formatsben.boeckel/gitlab-ce-fixup-links-in-generic-docs | Ben Boeckel | 2016-02-12 | 1 | -0/+15 |
| | | | | | | | | - 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. | ||||
* | Use the WikiPipeline when rendering the wiki markdown content | Douglas Barbosa Alexandre | 2016-01-14 | 1 | -1/+1 |
| | |||||
* | Merge remote-tracking branch 'origin/feature/update-rubocop' | Dmitriy Zaporozhets | 2015-12-16 | 1 | -1/+2 |
|\ | |||||
| * | Fixed Rubocop offenses | Gabriel Mazetto | 2015-12-15 | 1 | -1/+2 |
| | | |||||
* | | Move Markdown/reference logic from Gitlab::Markdown to Banzai | Douwe Maan | 2015-12-15 | 1 | -3/+3 |
|/ | |||||
* | Merge branch 'master' into reference-pipeline-and-caching | Douwe Maan | 2015-11-19 | 1 | -1/+1 |
|\ | |||||
| * | Refactor duplciate code for groups_controller.rb and ↵ | Dmitriy Zaporozhets | 2015-11-17 | 1 | -1/+1 |
| | | | | | | | | | | | | slack_service/note_message.rb Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | ||||
| * | Remove code duplication in gitlab_markdown_helper.rb | Dmitriy Zaporozhets | 2015-11-17 | 1 | -28/+24 |
| | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | ||||
* | | Use Gitlab::Markdown for Asciidoc and ReferenceExtractor pipelines | Douwe Maan | 2015-10-14 | 1 | -6/+9 |
| | | |||||
* | | Use Gitlab::Markdown.render with :pipeline option rather than different methods | Douwe Maan | 2015-10-14 | 1 | -27/+10 |
|/ | |||||
* | Pass project to RedactorFilter | Douwe Maan | 2015-10-13 | 1 | -2/+2 |
| | |||||
* | Refactor reference gathering to use a dedicated filter | Douwe Maan | 2015-10-07 | 1 | -3/+8 |
| | |||||
* | Return strings where expected | Douwe Maan | 2015-10-07 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' into rs-redactor-filter | Douwe Maan | 2015-10-07 | 1 | -2/+2 |
|\ | |||||
| * | Fix link with emoji | SAKATA Sinji | 2015-10-02 | 1 | -1/+1 |
| | | |||||
| * | Fix cases where Markdown did not render links in activity feed | Stan Hu | 2015-09-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | HTML would be stripped in `truncate_if_block` when a comment had multiple lines and the first wasn't long enough to be truncated. The use of `node.content` would strip all HTML tags. Using `node.inner_html` retains these tags and puts the "..." in between paragraph tags. Closes #2586 | ||||
| * | Fix Markdown links not showing up in dashboard activity feed | Stan Hu | 2015-09-20 | 1 | -2/+2 |
| | | | | | | | | Closes #2586 | ||||
* | | Basic support for an Atom-specific rendering pipeline | Robert Speicher | 2015-09-03 | 1 | -4/+6 |
| | | |||||
* | | Return early from markdown and gfm when text is empty | Robert Speicher | 2015-09-03 | 1 | -0/+4 |
| | | |||||
* | | Add post_process method to Gitlab::Markdown | Robert Speicher | 2015-09-01 | 1 | -2/+4 |
| | | |||||
* | | Remove `current_user` context from markdown and gfm helpers | Robert Speicher | 2015-09-01 | 1 | -2/+0 |
|/ | | | | These helpers are no longer dependent on the current user state. Hooray! | ||||
* | Remove PreferencesHelper include from GitlabMarkdownHelperrs-cleanup-redcarpet-renderer | Robert Speicher | 2015-09-01 | 1 | -2/+0 |
| | |||||
* | Make sure the `gfm` helper passes the required options | Robert Speicher | 2015-08-31 | 1 | -1/+9 |
| | | | | This adds some duplication, but this helper is temporary. | ||||
* | Make `gfm` delegate to `Gitlab::Markdown.gfm` instead of `markdown` | Robert Speicher | 2015-08-31 | 1 | -1/+1 |
| | | | | | Some usages of the `gfm` helper depend on the text not being rendered as standard Markdown. Ugh. | ||||
* | Fix context options in `markdown` helper | Robert Speicher | 2015-08-31 | 1 | -5/+5 |
| | | | | We need to send `path`, not `requested_path`. | ||||
* | Add a temporary `gfm` helper that just delegates to `markdown` | Robert Speicher | 2015-08-27 | 1 | -0/+6 |
| | | | | | Some views are still calling `gfm` directly. We'll need to update them to instead call `markdown` with a `pipeline: ...` argument. | ||||
* | Restore the forwarded HTML options in link_to_gfm | Robert Speicher | 2015-08-27 | 1 | -0/+5 |
| | |||||
* | Decouple Gitlab::Markdown from the GitlabMarkdownHelper | Robert Speicher | 2015-08-27 | 1 | -24/+10 |
| | | | | | This module is now the sole source of knowledge for *how* we render Markdown (and GFM). | ||||
* | Remove user_color_scheme_class | Robert Speicher | 2015-08-25 | 1 | -1/+1 |
| | | | | | | | | | Instead of rendering this value server-side, we use Javascript and Gon to apply the user's color scheme (or the default) to any syntax highlighted code blocks. This will make it easier to cache these blocks in the future because they're no longer state-dependent. | ||||
* | Fixed the issuescomment-box-changes | Darby | 2015-07-09 | 1 | -1/+1 |
| | |||||
* | Comment box/Placeholder text redo | Darby | 2015-07-01 | 1 | -1/+1 |
| | |||||
* | Prefix random Markdown tips with "Tip:"rs-random-placeholder-tip | Robert Speicher | 2015-06-24 | 1 | -1/+1 |
| | |||||
* | Show a random Markdown tip in the textarea placeholder | Robert Speicher | 2015-06-23 | 1 | -0/+23 |
| | |||||
* | Add PreferencesHelper module | Robert Speicher | 2015-06-13 | 1 | -0/+1 |
| | | | | | | | Consolidates the helpers related to user preferences. Renames `app_theme` to `user_application_theme` to better explain what it is. | ||||
* | Actually ignore references in code blocks etc. | Douwe Maan | 2015-06-02 | 1 | -15/+12 |
| | |||||
* | Fix link_to_gfm with only a reference having the incorrect linkrs-issue-1721 | Robert Speicher | 2015-05-29 | 1 | -3/+16 |
| | | | | Closes #1721 | ||||
* | Simplify `cross_project_reference` with `to_reference` | Robert Speicher | 2015-05-26 | 1 | -7/+17 |
| | |||||
* | Handle AsciiDoc better, reuse HTML pipeline filters (fixes #9263) | Jakub Jirutka | 2015-05-18 | 1 | -1/+14 |
| | |||||
* | Fix reference links in dashboard activity and ATOM feeds.dashboard-references | Douwe Maan | 2015-05-14 | 1 | -6/+8 |
| | |||||
* | Extract handling of relative file links to RelativeLinkFilter | Jakub Jirutka | 2015-05-11 | 1 | -140/+0 |
| | |||||
* | Add Gitlab::Markdown::SanitizationFilter | Robert Speicher | 2015-04-30 | 1 | -1/+1 |
| | | | | | This just extends the HTML::Pipeline::SanitizationFilter with our custom whitelist. | ||||
* | Add Gitlab::Markdown::AutolinkFilter | Robert Speicher | 2015-04-30 | 1 | -3/+1 |
| | |||||
* | Add Gitlab::Markdown::TableOfContentsFilter | Robert Speicher | 2015-04-30 | 1 | -1/+0 |
| | | | | Removes header and table of contents processing from Redcarpet renderer. | ||||
* | Add footnotes support to Markdown | Guillaume Delbergue | 2015-04-24 | 1 | -1/+2 |
| | | | | Signed-off-by: Guillaume Delbergue <guillaume.delbergue@greensocs.com> |