dahlia/Run submark

Extract a part from CommonMark/Markdown docs

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 17, 2026
License
GPL 3.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: dahlia/submark@cb44ec4506dbbcebb93e78b9b080ef4aa54a42e3 # 0.4.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
input-textThe input CommonMark/Markdown text. Mutually exlclusive with the input-file parameter.
input-fileThe input CommonMark/Markdown file path. Mutually exlclusive with the input-text parameter.
heading-levelThe heading level of the section to extract.yes
heading-title-textExtract 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-regexSimilar 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-caseIgnore case distinctions.false
omit-headingOmit a leading heading.false
columnsLimit the maximum characters per line of the output. No limit by default.
namedescription
output-textThe text of the extracted part.
output-fileThe path to the temporary file which contains the only extracted part.