Skip to content

as_markdown() lowercases acronyms in attribute headers #41

Description

@talkasab

Problem

The as_markdown() function lowercases attribute names when generating markdown headers. This causes acronyms like "ICV" to appear as "icv" in the generated text files.

For example, an attribute named whole brain % of ICV in the JSON definition renders as:

### Whole brain % of icv—`OIFMA_MSFT_399051`

instead of:

### Whole brain % of ICV—`OIFMA_MSFT_399051`

Similarly affects left % of ICV and right % of ICV in hippocampal_asymmetry_metrics.

Expected behavior

Acronyms (or at minimum, the original casing of attribute names) should be preserved in generated markdown headers.

Found via Copilot review on openimagingdata/findingmodels#48.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions