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

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.6
    • 1.6 M2
    • {Unused} Rendering 2.0
    • None
    • Unit

    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

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

            Dates

              Created:
              Updated:
              Resolved: