- we can't just look at the len of the string (~ #bytes) - that breaks down for tables containing characters consisting of multiple bytes. This handles more (still not all) cases and is good enough for now - add _ to allowed tag chars - also require space between headline and tags - links (link itself, not the description) spanning multiple lines are not supported - otherwise we would have to take care of splitting link and adding indentation for org pretty printing - and that sounds like such an edge case that it seems cleaner to forbid them
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
#+CAPTION: table with separator before and after header
|
||
|---+---+---|
|
||
| a | b | c |
|
||
|---+---+---|
|
||
| 1 | 2 | 3 |
|
||
|
||
#+CAPTION: table with separator after header
|
||
| a | b | c |
|
||
|---+---+---|
|
||
| 1 | 2 | 3 |
|
||
|
||
#+CAPTION: table with unicode characters
|
||
| Character | Org | Rendered HTML |
|
||
|-----------+-----------+---------------|
|
||
| Hyphen | =a - b= | a - b |
|
||
| Ndash | =a -- b= | a – b |
|
||
| Mdash | =a --- b= | a — b |
|
||
| Ellipsis | =a ... b= | a … b |
|
||
|
||
#+CAPTION: table without header (but separator before)
|
||
|---+---+---|
|
||
| 1 | 2 | 3 |
|
||
|
||
#+CAPTION: table without header
|
||
| 1 | 2 | 3 |
|
||
|
||
#+CAPTION: table with aligned columns
|
||
| left aligned | right aligned | center aligned |
|
||
|--------------+---------------+----------------|
|
||
| <l> | <r> | <c> |
|
||
| 42 | 42 | 42 |
|
||
| foobar | foobar | foobar |
|
||
|
||
#+CAPTION: table with right aligned columns (because numbers)
|
||
| long column a | long column b | long column c |
|
||
|---------------+---------------+---------------|
|
||
| 1 | 2 | 3 |
|