1. 17 4月, 2018 1 次提交
  2. 12 4月, 2018 1 次提交
    • J
      Fix reference filters in group context · 3e831453
      Jan Provaznik 提交于
      Since !18150 abstract reference filter supports also `group`
      as a resource parent (not only `project`). Some reference filters,
      which inherit from abstract filter, depend on parent being `project`
      when checking a reference.
      
      This patch adds explicit check of parent class to the given filters.
      3e831453
  3. 11 4月, 2018 1 次提交
    • Y
      Support Markdown rendering using multiple projects · daad7144
      Yorick Peterse 提交于
      This refactors the Markdown pipeline so it supports the rendering of
      multiple documents that may belong to different projects. An example of
      where this happens is when displaying the event feed of a group. In this
      case we retrieve events for all projects in the group. Previously we
      would group events per project and render these chunks separately, but
      this would result in many SQL queries being executed. By extending the
      Markdown pipeline to support this out of the box we can drastically
      reduce the number of SQL queries.
      
      To achieve this we introduce a new object to the pipeline:
      Banzai::RenderContext. This object simply wraps two other objects: an
      optional Project instance, and an optional User instance. On its own
      this wouldn't be very helpful, but a RenderContext can also be used to
      associate HTML documents with specific Project instances. This work is
      done in Banzai::ObjectRenderer and allows us to reuse as many queries
      (and results) as possible.
      daad7144
  4. 06 4月, 2018 1 次提交
  5. 05 4月, 2018 1 次提交
  6. 04 4月, 2018 3 次提交
  7. 02 4月, 2018 1 次提交
  8. 28 3月, 2018 1 次提交
    • S
      Fix auto-linking with escaped HTML entities · 3a43cf42
      Sean McGivern 提交于
      We displayed the correct text as the link text (without double-encoding), but
      didn't do the same for the actual link target, so any link containing an
      ampersand would break when auto-linked.
      3a43cf42
  9. 23 3月, 2018 2 次提交
  10. 20 3月, 2018 1 次提交
  11. 12 3月, 2018 1 次提交
  12. 07 3月, 2018 1 次提交
  13. 06 3月, 2018 1 次提交
  14. 02 3月, 2018 1 次提交
    • S
      Match Rinku's behaviour for closing punctuation in links · cb55bc3c
      Sean McGivern 提交于
      Rinku 2.0.0 (the version we use) will remove the last character of a link if
      it's a closing part of a punctuation pair (different types of parentheses and
      quotes), unless both of the below are true:
      
      1. The matching pair has different start and end characters.
      2. There are equal numbers of both in the matched string (they don't have to be
         balanced).
      cb55bc3c
  15. 27 2月, 2018 1 次提交
  16. 23 2月, 2018 2 次提交
  17. 22 2月, 2018 1 次提交
  18. 15 2月, 2018 1 次提交
  19. 10 2月, 2018 1 次提交
  20. 03 2月, 2018 1 次提交
  21. 01 2月, 2018 2 次提交
  22. 29 1月, 2018 1 次提交
  23. 19 1月, 2018 1 次提交
  24. 17 1月, 2018 1 次提交
  25. 11 1月, 2018 1 次提交
  26. 05 1月, 2018 1 次提交
  27. 23 12月, 2017 1 次提交
    • S
      Gracefully handle garbled URIs in Markdown · 0faf772b
      Stan Hu 提交于
      There are certain inputs that look like valid URIs that are accepted by URI
      but not Addressable::URI. Handle the case where the latter fails.
      
      Closes #41442
      0faf772b
  28. 22 12月, 2017 1 次提交
  29. 08 12月, 2017 1 次提交
    • J
      Use prefix for TableOfContents filter hrefs · 3e83d9f7
      Jan Provaznik 提交于
      TableOfContents filter generates hrefs for each header in markdown,
      if the header text consists from digits and redacted symbols only,
      e.g. "123" or "1.0 then the auto-generated href has the same format
      as issue references.
      
      If the generated id contains only digits, then 'anchor-' prefix is
      prepended to the id.
      
      Closes #38473
      3e83d9f7
  30. 07 12月, 2017 6 次提交