dahlia/Run submark
Extract a part from CommonMark/Markdown docs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 17, 2026
- License
- GPL 3.0
Pinned Snippet
uses: dahlia/submark@cb44ec4506dbbcebb93e78b9b080ef4aa54a42e3 # 0.4.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| input-text | The input CommonMark/Markdown text. Mutually exlclusive with the input-file parameter. | — | — |
| input-file | The input CommonMark/Markdown file path. Mutually exlclusive with the input-text parameter. | — | — |
| heading-level | The heading level of the section to extract. | yes | — |
| heading-title-text | Extract the section with the exact this heading-title-text (and the heading-level). Note that it tries to match to the heading title with no markup, which means heading-title-text: "foo bar" matches to both "# foo bar" and "# _foo_ **bar**". Mutually exclusive with the heading-title-regex parameter. | — | — |
| heading-title-regex | Similar to the heading-title-text parameter except that it takes a regular expression. Note that it tries to match to the heading title with no markup, which means heading-title-regex: "fo+ ba[rz]" matches to both "# foo bar" and "# _foooo_ **baz**". Mutually exclusive with the heading-title-text parameter. | — | — |
| ignore-case | Ignore case distinctions. | — | false |
| omit-heading | Omit a leading heading. | — | false |
| columns | Limit the maximum characters per line of the output. No limit by default. | — | — |
Outputs
| name | description |
|---|---|
| output-text | The text of the extracted part. |
| output-file | The path to the temporary file which contains the only extracted part. |