karlicoss / orgparse

Python module for reading Emacs org-mode files
https://orgparse.readthedocs.org
BSD 2-Clause "Simplified" License
371 stars 43 forks source link

support names on tables #34

Open jkitchin opened 3 years ago

jkitchin commented 3 years ago

In an org-file like this, the table would have tabname as a name in the org-element. It would be helpful to have this information as attributes or something in orgparse.extra.Table.

#+caption: Some caption for a table
#+name: tabname
| x | y |
|---|---|
| 1 | 2 |
karlicoss commented 3 years ago

Hmm good idea! So far I've been locating a named heading & extracting the table under it (assuming it's the only one), whereas if we used the name, it would simplify it.