hallowelt / migrate-confluence

Tool to migrate content from Confluence export files into a MediaWiki compatible import source
GNU General Public License v3.0
35 stars 8 forks source link

Add `details` macro (aka "Page Properties") #101

Open osnard opened 5 months ago

osnard commented 5 months ago

Example:

<ac:structured-macro ac:name="details" ac:schema-version="1" data-layout="default" ac:local-id="..." ac:macro-id="...">
  <ac:parameter ac:name="id">...</ac:parameter>
  <ac:rich-text-body>
    <table data-layout="default">
      <colgroup>
        <col style="width: 99.0px;"/>
        <col style="width: 627.0px;"/>
      </colgroup>
      <tbody>
        <tr>
          <td>
            <p>
              <strong>...</strong>
            </p>
          </td>
          <td>
            <p>
              <time datetime="2021-03-31"/>
            </p>
          </td>
        </tr>
        <tr>
          <td>
            <p>
              <strong>...</strong>
            </p>
          </td>
          <td>
            <p>...</p>
          </td>
        </tr>
        <tr>
          <td>
            <p>
              <strong>...</strong>
            </p>
          </td>
          <td>
            <p>...</p>
          </td>
        </tr>
        <tr>
          <td>
            <p>
              <strong>...</strong>
            </p>
          </td>
          <td>
            <ul>
              <li>
                <p>
                  <ac:link>
                    <ri:user ri:userkey="..."/>
                  </ac:link>
                </p>
              </li>
              <li>
                <p>
                  <ac:link>
                    <ri:user ri:userkey="..."/>
                  </ac:link>
                </p>
              </li>
              <li>
                <p>
                  <ac:link>
                    <ri:user ri:userkey="..."/>
                  </ac:link>
                </p>
              </li>
              <li>
                <p>
                  <ac:link>
                    <ri:user ri:userkey="..."/>
                  </ac:link>
                </p>
              </li>
              <li>
                <p><ac:link><ri:user ri:userkey="..."/></ac:link> </p>
              </li>
              <li>
                <p><ac:link><ri:user ri:userkey="..."/></ac:link> </p>
              </li>
              <li>
                <p>
                  <ac:link>
                    <ri:user ri:userkey="..."/>
                  </ac:link>
                </p>
              </li>
              <li>
                <p><ac:link><ri:user ri:userkey="..."/></ac:link> </p>
              </li>
              <li>
                <p><ac:link><ri:user ri:userkey="..."/></ac:link> </p>
              </li>
              <li>
                <p><ac:link><ri:user ri:userkey="..."/></ac:link> </p>
              </li>
              <li>
                <p><ac:link><ri:user ri:userkey="..."/></ac:link> </p>
              </li>
            </ul>
          </td>
        </tr>
      </tbody>
    </table>
  </ac:rich-text-body>
</ac:structured-macro>

Parameters: id, hidden