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

Table of contents macro is not always generated as standalone macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 9.1.4
    • XML
    • None
    • Unknown

    Description

      It seems that some source content like this:

      <p><u><strong>Table of Contents :</strong></u></p><p><u><strong><ac:macro ac:name="toc" /><br /></strong></u></p>
      

      is imported in XWiki like this:

      __**Table of Contents :**__
      
      __**{{toc/}}
      **__
      

      The table of contents is thus inline (in the formatting) and displaying on the screen an error:

      "The [toc] macro is a standalone macro and it cannot be used inline"

      We should make sure that the toc macro is generated block (stanlone) no matter what.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: