Org reader: add table labels to caption if both are present

The table `#+NAME:` or `#+LABEL:` is added to the table's caption in the
form of an empty span with the label set as the span's ID.

Closes: #5984
This commit is contained in:
Albert Krewinkel
2019-12-13 16:22:04 +01:00
parent 2af13ef05a
commit 75dc013036
2 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ pandoc -f org -t native
| 2 | La |
| 3 | La |
^D
[Table [Str "Lalelu."] [AlignDefault,AlignDefault] [0.0,0.0]
[Table [Span ("tab",[],[]) [],Str "Lalelu."] [AlignDefault,AlignDefault] [0.0,0.0]
[[Plain [Str "Id"]]
,[Plain [Str "Desc"]]]
[[[Plain [Str "1"]]