Read about our upcoming Code of Conduct on this issue

  1. 02 Dec, 2016 1 commit
  2. 07 Oct, 2016 2 commits
    • Nick Thomas's avatar
      Enable CacheMarkdownField for the remaining models · 8084d80dbce5
      Nick Thomas authored
      This commit alters views for the following models to use the markdown cache if
      present:
      
      * AbuseReport
      * Appearance
      * ApplicationSetting
      * BroadcastMessage
      * Group
      * Issue
      * Label
      * MergeRequest
      * Milestone
      * Project
      
      At the same time, calls to `escape_once` have been moved into the `single_line`
      Banzai pipeline, so they can't be missed out by accident and the work is done
      at save, rather than render, time.
      8084d80dbce5
    • Nick Thomas's avatar
      Add markdown cache columns to the database, but don't use them yet · af001f6c6325
      Nick Thomas authored
      This commit adds a number of _html columns and, with the exception of Note,
      starts updating them whenever the content of their partner fields changes.
      
      Note has a collision with the note_html attr_accessor; that will be fixed later
      
      A background worker for clearing these cache columns is also introduced - use
      `rake cache:clear` to set it off. You can clear the database or Redis caches
      separately by running `rake cache:clear:db` or `rake cache:clear:redis`,
      respectively.
      af001f6c6325
  3. 21 Jun, 2016 1 commit
    • Yorick Peterse's avatar
      Move pre_process into render_result · 7572ded527b6
      Yorick Peterse authored
      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.
      7572ded527b6
  4. 17 Jun, 2016 1 commit
  5. 09 Jun, 2016 1 commit
    • Timothy Andrew's avatar
      Hook up the updated `WikiLinkFilter` to the wiki controllers. · 08c6e088817a
      Timothy Andrew authored
      - 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
      08c6e088817a
  6. 03 Jun, 2016 2 commits
  7. 23 May, 2016 1 commit
  8. 10 Apr, 2016 1 commit
  9. 03 Mar, 2016 1 commit
  10. 12 Feb, 2016 1 commit
    • Ben Boeckel's avatar
      Fix relative links in other markup formats · e1f8ba625023
      Ben Boeckel authored
      - 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.
      e1f8ba625023
  11. 14 Jan, 2016 1 commit
  12. 15 Dec, 2015 2 commits
  13. 17 Nov, 2015 2 commits
  14. 14 Oct, 2015 2 commits
  15. 13 Oct, 2015 1 commit
  16. 07 Oct, 2015 2 commits
  17. 01 Oct, 2015 1 commit
  18. 23 Sep, 2015 1 commit
    • Stan Hu's avatar
      Fix cases where Markdown did not render links in activity feed · 4b91dc46da74
      Stan Hu authored
      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
      4b91dc46da74
  19. 20 Sep, 2015 1 commit
  20. 09 Sep, 2015 1 commit
  21. 03 Sep, 2015 2 commits
  22. 01 Sep, 2015 3 commits
  23. 31 Aug, 2015 3 commits
  24. 27 Aug, 2015 3 commits
  25. 26 Aug, 2015 1 commit
  26. 25 Aug, 2015 1 commit
    • Robert Speicher's avatar
      Remove user_color_scheme_class · 12aa9bd71221
      Robert Speicher authored
      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.
      12aa9bd71221
  27. 09 Jul, 2015 1 commit