-
-
Notifications
You must be signed in to change notification settings - Fork 879
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 for column alignment for org table export #2391
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can this be achieved by the align.fun
argument of kable_mark()
? Manipulating the strings via regex feels like an ad hoc hack. Perhaps a custom align.fun
function will be much more straightforward.
I have now updated this to use What is the expected behaviour when there are no column names? Specifically, should we include a top line? The current implementation removes both the blank column names (index=1) and the line (index=3):
|
If you are okay with my assumptions for a table with no header, then can you review the pull request as it is, please? |
For table export to Org Mode, (i) the column alignment is currently lost and (ii) the output table includes colons which are not part of the Org Mode table specification. To address these issues, I have added some code to keep the column alignment and cleaned up the output table format.
I hope that this is helpful.
Sincerely, Mark.