Skip to content

Add ability to define requirements in Markdown files#66

Merged
mhatzl merged 8 commits into
mainfrom
mh/markdown-parsing
Jul 15, 2026
Merged

Add ability to define requirements in Markdown files#66
mhatzl merged 8 commits into
mainfrom
mh/markdown-parsing

Conversation

@mhatzl

@mhatzl mhatzl commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Requirements may now be defined in Markdown files.
Mantra will search for Markdown files if source is set to Markup.

The expected format follows:

# `<requirement ID>`: <Requirement title>

- **Parents:** ["<optional parent requirement ID>"]
- **Key:** <JSON value>

<Optional requirement description>

mhatzl added 8 commits July 13, 2026 15:20
Settings from bullet lists are not yet extracted
"try_begin()" may fail to start a transaction if more than one product is collected in one "mantra collect" call. Switched to "begin()".
Likely due to the prev. connection not being fully released when trying to aquire connection for the next product.
Tests explicit product-id filtering in frontmatter
Test content added to show how origin is displayed for reqs from Markdown files
This fits with GitHub's URL for files of any branch.
Explicitly stating product id makes switching between branches as base easier.
@mhatzl
mhatzl merged commit e95446a into main Jul 15, 2026
2 checks passed
@mhatzl
mhatzl deleted the mh/markdown-parsing branch July 15, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant