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

pantable as a cli tool #10

Open
ickc opened this issue Jan 27, 2017 · 0 comments
Open

pantable as a cli tool #10

ickc opened this issue Jan 27, 2017 · 0 comments

Comments

@ickc
Copy link
Owner

ickc commented Jan 27, 2017

Depending on #8 and #9:

the syntax probably would goes something like

# pandoc like args
## -s means pantable is used as a "standalone cli tool"
pantable -s -o table.csv table.md
## without -s, it acts as a pandoc filter:
pandoc -t json table.md | pantable -t csv # -t csv means convert native pandoc table into a CSV table in CodeBlock
# or simply when filter arg is not needed
pandoc -F pantable table.md

Edit: it also has a question of how to represent the metadata in some output formats, e.g. to CSV:

pantable -s -o table.csv table.md

Suppose table.md only has a table. The output .csv still needs to store the metadata in some way. Possible solutions:

  • CSV comment # ....: non-standard. e.g. Excel won't understand this.
  • no metadata and pantable -f csv will chooses "sensible default", and uses other args (that will be given) to override it.
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

1 participant