Skip to content

pantable as a cli tool #10

@ickc

Description

@ickc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions