Uploaded image for project: 'Confluence'
  1. Confluence
  2. CONFLUENCE-10

Anchor macro calls don't preserve their parameter

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      This issue is about the fact that Confluence anchor macro calls are transformed in XWiki macro calls (with name anchor) but the parameter of the macro from confluence is lost, so it's not possible to create an equivalent macro in XWiki to do the same thing.

      More precisely (running on XWiki 8.4.4), the following content from the Confluence export:

                <p>
                  <span>
                    <span>A.01.01</span>
                  </span>
                </p>
                <p>
                  <span>
                    <span/>
                    <ac:macro ac:name="anchor">
                      <ac:default-parameter>A.01.01</ac:default-parameter>
                    </ac:macro>
                  </span>
                </p>
      
      A.01.01
      
       A.01.01
      
      {{anchor/}}
      
      

      What I would expect is something like

      A.01.01
      
       {{anchor param="A.01.01"/}}
      
      

      or

      A.01.01
      
       {{anchor}}A.01.01{{/anchor}}
      
      

      allowing to rebuild the anchor macro.

      Of course, if the anchor macro can be replaced with the XWiki macro that corresponds, it's even better, but it's not mandatory. All that I need is to have the name of the anchor parameter somehow passed to the anchor macro.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: