Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2688

Allow macros to decide what to render based on the fact that they're used inline or not

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6 M2
    • Fix Version/s: 1.6
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Tests:
      Unit
    • Similar issues:

      Description

      For example:

      = hello {{velocity}}world{{/velocity}}
      

      Shouldn't generate a paragraph around "world" but

      = hello
      {{velocity}}world{{/velocity}}
      

      should.

      We still need to decide what to do when a macro that cannot be run inline is called in an inline context (for example the TOC macro).

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: