Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with multiple heading with same content #346

Open
mayankj007 opened this issue Jun 16, 2024 · 1 comment
Open

Issue with multiple heading with same content #346

mayankj007 opened this issue Jun 16, 2024 · 1 comment
Labels

Comments

@mayankj007
Copy link

I have a document with have following structure

# Testcases

## Test Case 1
### Initial State
### Actions Taken
### Expected Result
### Actual Result

## Test Case 2
### Initial State
### Actions Taken
### Expected Result
### Actual Result

## Test Case 3
### Initial State
### Actions Taken
### Expected Result
### Actual Result

I am getting the following error in the lint:

MD024/no-duplicate-heading: Multiple headings with the same contentmarkdownlint(MD024)

My IDE details:
Eclipse Theia IDE
Version 1.50.100
VS Code API Version: 1.89.1

My understanding is, the lint should not through an error if the parent heading is different. As it can be a real world case. 
@DavidAnson
Copy link
Owner

By default, duplicate headings at any level are reported. If you want to allow duplicates across sibling sections as you show above, you need to set the siblings_only parameter in configuration. This is explained in the documentation: https://github.com/DavidAnson/markdownlint/blob/main/doc/md024.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants