Skip to content

csv-table directive #9

Closed

Description

@Mpdreamz

CSV Table

Kind Link
Reference https://mystmd.org/guide/directives#directive-csv-table
Documentation https://mystmd.org/guide/tables#csv-tables

The “csv-table” directive is used to create a table from CSV (comma-separated values) data.

Implementation

  • Parses directives and aliases
  • Emits HTML
  • Unit tests
  • Validation (emits, warnings and errors).

Specification compliance:

  • Arguments is parsed
  • Body is a raw string
  • Options:
    • label, name (string) - Label the directive to be cross-referenced or explicitly linked to.
    • enumerated, numbered (boolean) - Turn on/off the numbering for the specific code
    • enumerator, number (string) - Explicitly set the code number
    • header (string)
      Supplemental data for the table header, added independently of and before any header-rows from the main CSV data. Must use the same CSV format as the main CSV data.
    • header header-rows (number) - The number of rows of CSV data to use in the table header. Defaults to 0.
    • header class (string) - CSS classes to add to your table.
      • header - full-width: changes the table environment to cover two columns in LaTeX
    • align (string)
    • delim (string)
      The character used to separate data fields. The special values “tab” and “space” are converted to the respective whitespace characters. Defaults to “,” (comma)
    • keepspace (boolean)
      Treat whitespace immediately following the delimiter as significant. The default is to ignore such whitespace.
    • quote (string)
      The character used to quote fields containing special characters, such as the delimiter, quotes, or new-line characters. Must be a single character, defaults to " (a double quote)
      For example, First cell, "These commas, for example, are escaped", Next cell
    • escape (string)
      A character used to escape the delimiter or quote characters from the CSV parser. Must be a single character, defaults to " (a double quote) default is a double quote
      For example, First cell, "These quotes"", for example, are escaped", Next cell

Activity

  1. added
    authoring
    and removed on Nov 6, 2024
  2. Mpdreamz commented on Nov 12, 2024

    @Mpdreamz
    MemberAuthor

    Closed by #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authoring

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions