Skip to content

benlei/parse-simple-md-table

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

benlei/parse-simple-md-table

GitHub Super-Linter CI Check dist/ CodeQL Coverage

Parses a basic Markdown table and sets an output with a JSON string representating each row of the table.

Inputs

Input Name Required Description
markdown yes The Markdown text to parse

Outputs

Output Name Description
result The parsed Markdown as a JSON string

Example

- name: Parse Markdown Table
  uses: benlei/parse-simple-md-table@v1
  id: parse-table
  with:
    markdown: |
      | Hello World | Goodbye World |
      | --- | --- |
      | 123 | abc |
      | foo | bar |

- name: Output first row first column
  run: echo ${{ fromJSON(steps.parse-table.outputs.result)[0]['Hello World'] }}

About

Parses a simple markdown table into a JSON string

Resources

License

Stars

Watchers

Forks

Packages

No packages published