Summary
When a dataset contains a README.md file, automatically render it as formatted HTML on the dataset landing page — similar to how GitHub and GitLab display README files in repository root views.
Problem
Researchers commonly include a README.md to document data structure, methodology, and usage instructions. Currently, Dataverse displays this file as plain text or requires users to download it, losing all Markdown formatting (headings, tables, links, code blocks).
This forces an unnecessary extra step and makes dataset landing pages less informative at a glance.
Proposed behaviour
- Detect
README.md (case-insensitive) at the dataset root on ingest or update
- Render it as sanitized HTML on the landing page, below the metadata section and above the file listing
- Use a standard parser (e.g. CommonMark / flexmark-java)
- Strip unsafe tags (
<script>, <iframe>, etc.) to prevent XSS
- Provide a toggle to view the raw file
- Make the feature opt-in via a JVM/config flag for installation administrators
Prior art
| Platform |
Behaviour |
| GitHub |
Renders README.md on repository root page |
| GitLab |
Same as GitHub |
| Zenodo |
Renders description field as Markdown HTML |
| OSF |
Renders README.md on project pages |
Interim fallback
If full README rendering is out of scope, extending the existing file preview to render any .md file as formatted HTML would be a valuable first step.
Summary
When a dataset contains a
README.mdfile, automatically render it as formatted HTML on the dataset landing page — similar to how GitHub and GitLab display README files in repository root views.Problem
Researchers commonly include a
README.mdto document data structure, methodology, and usage instructions. Currently, Dataverse displays this file as plain text or requires users to download it, losing all Markdown formatting (headings, tables, links, code blocks).This forces an unnecessary extra step and makes dataset landing pages less informative at a glance.
Proposed behaviour
README.md(case-insensitive) at the dataset root on ingest or update<script>,<iframe>, etc.) to prevent XSSPrior art
README.mdon repository root pageREADME.mdon project pagesInterim fallback
If full README rendering is out of scope, extending the existing file preview to render any
.mdfile as formatted HTML would be a valuable first step.