Motivation
Currently it is not possible to use
TML within TWiki table cells because a table row must be on one and only one line. Therefore it is not possible to use other line oriented elements in tables, such as bullet lists or embedded tables. As a workaround it is possible to fall back to
HTML, but this is cumbersome.
Description and Documentation
Enhance the syntax so that it is possible to have multiple lines within a table cell.
Normal table cell:
| example |
Syntax for multi-line table cell:
|>> example <<|
This syntax is aligned with the multi-row cell syntax:
|^|
Examples
| |
Simple example:
| A1 | B1 | C1 |
| A2 |>> B2
* List
* Two
<<| C2 |
| A3 | B3 | C3 |
| |
Screenshot:
| |
Renders as: (broken unless implemented)
| A1 |
B1 |
C1 |
| A2 |
B2
|
C2 |
| A3 |
B3 |
C3 |
| |
Here is a more complex example with a table within table that has a bullet list:
| |
Complex example:
| *A1* | *B1* | *C1* | *D1* | *E1* |
| A2 | B2 | C2 | D2 | E2 |
| A3 |>> B3
* List
* Two
<<| C3 |>> D3
| *D3.1* | *D3.2* |
| Embedded | Table |
| OK |>>
start D3.2b
* 3rd level
* bullet
end D3.2b
<<|
end D3
<<| E3 |
| A4 | B4 | C4 | D4 | E4 |
| |
Screenshot:
| |
Renders as: (broken unless implemented)
| A1 |
B1 |
C1 |
D1 |
E1 |
| A2 |
B2 |
C2 |
D2 |
E2 |
| A3 |
B3
|
C3 |
D3
| D3.1 |
D3.2 |
| Embedded |
Table |
| OK |
start D3.2b
end D3.2b
|
end D3
|
E3 |
| A4 |
B4 |
C4 |
D4 |
E4 |
| |
Impact
Implementation
The implementation should be done in two phases:
- Enhance the TablePlugin (relatively easy)
- Enhance the WysiwygPlugin (relatively hard)
--
Contributors:
Peter Thoeny - 2014-11-12
Discussion
This would be very useful. I'd love to use it once it's implemented.
Incidentally, how would the following be marked up?
Would it be:
|>>
* abc
* def
* ghi
<<|>>
* 123
* 456
* 478
<<|
<<|>> should be mentioned, I suppose.
--
Hideyo Imazu - 2014-11-13
Yes, that is the idea.
--
Peter Thoeny - 2014-11-13
I am trying to find a sponsor who could support the implementation of this feature. Any company interested?
--
Peter Thoeny - 2014-11-13
Feedback at
KampalaReleaseMeeting2014x12x04:
- Disable WYSIWYG editor of new syntax is detected.
- At a later point, enhance WYSIWYG editor to support new syntax.
--
Peter Thoeny - 2014-12-04
The
TablePlugin is now enhanced with this feature.
To do:
--
Peter Thoeny - 2014-12-09
The
WysiwygPlugin is now updated to disable itself if
|>> ... <<| syntax is detected.
--
Peter Thoeny - 2014-12-16
TWikiEditingShorthand is updated as well.
--
Peter Thoeny - 2014-12-16