Files
John MacFarlane 01257ef6eb T.P.Writers.Shared: New version of gridTable.
This handles row and colspans. Partially addresses #6344.

It also ensures that cells won't wrap text in places where it
wouldn't normally wrap, even if this means making the cells wider
than requested by the colspec. (Closes #9001.  Closes 7641.)

Parameters are different, so this is a breaking [API change].

Markdown, RST, and Muse writers have been adjusted to
use the new `gridTable`.
2025-05-14 14:31:39 -07:00

1.6 KiB

% pandoc -f html -t rst
<html>
  <body>
    <ul>
      <li>A list of stuff with a table inside
        <table>
          <thead>
            <tr>
              <th>First</th><th>Second</th><th>Third</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>First</td>
              <td>
                The big long table cell.
                The big long table cell.
                The big long table cell.
                The big long table cell.
                The big long table cell.
                The big long table cell.
                The big long table cell.
                The big long table cell.
                The big long table cell.
                The big long table cell.
              </td>
              <td>Third</td>
            </tr>
          </tbody>
        </table>
      </li>
      <li>Another list item</li>
    </ul>
  </body>
</html>
^D
- A list of stuff with a table inside

  +-------+------------------------------------------------------+-------+
  | First | Second                                               | Third |
  +=======+======================================================+=======+
  | First | The big long table cell. The big long table cell.    | Third |
  |       | The big long table cell. The big long table cell.    |       |
  |       | The big long table cell. The big long table cell.    |       |
  |       | The big long table cell. The big long table cell.    |       |
  |       | The big long table cell. The big long table cell.    |       |
  +-------+------------------------------------------------------+-------+

- Another list item