Skip to content

Preserve Markdown indentation in changelog container#82

Merged
mgks merged 1 commit intodocmd-io:mainfrom
ghunteranderson:changelog-ignores-indentation
Mar 15, 2026
Merged

Preserve Markdown indentation in changelog container#82
mgks merged 1 commit intodocmd-io:mainfrom
ghunteranderson:changelog-ignores-indentation

Conversation

@ghunteranderson
Copy link
Contributor

@ghunteranderson ghunteranderson commented Mar 11, 2026

Description

Within a changelog container, the indentation does not seem to be preserved. I notice this with indented lists and code blocks. All items in the list are moved to the root level.

---
title: 'Release Notes'
toc: 'false'
---

::: changelog

== v1.2.3

- Feature A
- Feature B
  - Note 1 on feature B
  - Node 1 on feature B

```yaml
locales:
  en_us:
    language: english
    country: us
```

:::

Notice the last two bullets are not indented and all indentation has been removed from the code snippet.

image

Type of change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@mgks mgks merged commit a31bff2 into docmd-io:main Mar 15, 2026
1 check failed
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.

2 participants