Another update: The dynamics of this wrapping are actually a little more complex than I realized. The reason for this is partially due to me not understanding the standard table syntax for Markdown.
I’ve always made tables without outside borders, e.g.
Concept | Mounting Method | Orientation | Beams
--------|-----------------|-------------|-------
1 | Bolt | landscape | strap
2 | Bolt | landscape | span
3 | Clamp | landscape | strap
As it turns out, the standard syntax includes outside borders, e.g.
| Concept | Mounting Method | Orientation | Beams |
| --------|-----------------|-------------|------- |
| 1 | Bolt | landscape | strap |
| 2 | Bolt | landscape | span |
| 3 | Clamp | landscape | strap |
Both of these result in a formatted table in the editor - greyed out |
and -
, no wrapping.
The editor display gets confused when the table has one, but not both, outside borders, e.g.
| Concept | Mounting Method | Orientation | Beams
| --------|-----------------|-------------|------
| 1 | Bolt | landscape | strap
| 2 | Bolt | landscape | span
| 3 | Clamp | landscape | strap
or
Concept | Mounting Method | Orientation | Beams |
--------|-----------------|-------------|------- |
1 | Bolt | landscape | strap |
2 | Bolt | landscape | span |
3 | Clamp | landscape | strap |
will still show up as a table in the preview, but the editor will treat it as plain text - wrapped, no greying on the |
and -
characters.
If you fuss with where the pipes are included, the editor will recognize the upper portion of the table (greyed and wrapped), but not the lower portion. For example,
| Concept | Mounting Method | Orientation | Beams |
| --------|-----------------|-------------|------- |
| 1 | Bolt | landscape | strap |
2 | Bolt | landscape | span |
| 3 | Clamp | landscape | strap |
Will recognize and format the first 3 rows (greyed and wrapped), but the lower two rows are not greyed or wrapped.
In all cases, the Preview still recognizes the entire block as a single table.
This means that on some level the Preview is adhering to a different standard than the Editor when it comes to tables.
This could potentially split into two separate issues:
- The option to wrap table contents in the editor
- Bringing the Editor and Preview onto the same level, either by:
- Increasing stringency on the Preview, so it only acknowledges tables with outside borders (or neither outside border)
- Decreasing stringency in the Editor, so it also recognizes tables with only the left or the right outside border.