Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying the title of a table #226

Open
raducoravu opened this issue Jun 14, 2024 · 2 comments
Open

Allow specifying the title of a table #226

raducoravu opened this issue Jun 14, 2024 · 2 comments

Comments

@raducoravu
Copy link
Collaborator

There is a way to specify the titles of images and thus create figures for them: https://github.com/jelovirt/org.lwdita/wiki/Common-syntax#images
For tables right now people need to write the title as a separate bold paragraph before the table. And it does not get converted to a table's title element. So if for example I use a bookmap to create a list of tables, all my tables defined in Markdown will not have titles as the titles are actually paragraphs placed above the tables and are not converted to table title elements.

@michael-nok
Copy link

You can actually do this already with DITA-OT, but it may not work in all scenarios.

You can specify the title as a [table title name] line as the last element in Markdown.

| Heading 1 | Heading 2 | Heading 3 |
| --------- | --------- | --------- |
| Content1A | Content1B | Content1C |
| Content2A | Content2B | Content2C |
[I am a Markdown table]
Heading 1 Heading 2 Heading 3
Content1A Content1B Content1C
Content2A Content2B Content2C
[I am a Markdown table]

@raducoravu
Copy link
Collaborator Author

@michael-nok wow, thanks, I had no idea one could do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants