-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add example in documentation on using pandoc.Table constructor. #10956
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
Conversation
|
I think this part of the documentation is auto-generated (see comment at line 2501). @tarleb will know where to make this change. |
|
Thanks for this, those are good improvements. The function is defined here and the docs are then generated from that. https://github.com/pandoc/pandoc-lua-marshal/blob/22c865629b67a78291b3c6eb568ecc79eca1e0ad/src/Text/Pandoc/Lua/Marshal/Block.hs#L463 We should probably add a TableBody constructor. |
|
Since the Examples section in lua-filters.md is not auto-generated (right?), I could move my changes as they are to that section. If that works, I could also try to rewrite the link info table example from #6571 and include it back in. |
|
That's a good idea. 👍 |
|
I've changed my original example into a filter, and tested both examples on some of my documents and they seem to be working. If the TableBody constructor is a good first issue, I could try taking it on. |
|
Great, thank you! Excellent additionsj! The only suggestion I have is to make it a bit clearer that the argument to A PR to add |
|
Thanks! |
|
Thanks for the help @tarleb ! |
This PR adds a code example of how to use the pandoc.Table constructor in a Lua filter and a few notes on the
colspecandbodiesparameters. These changes were made under the pandoc.Table constructor section of the documentation. I think that this will help provide enough information for someone to use this constructor without prior knowledge. This may be relevant to #6569 and #6571.