Parses a basic Markdown table and sets an output with a JSON string representating each row of the table.
Input Name | Required | Description |
---|---|---|
markdown |
yes | The Markdown text to parse |
Output Name | Description |
---|---|
result |
The parsed Markdown as a JSON string |
- 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'] }}