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

feat: handle duplicate markdown section names #94

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

camshaft
Copy link
Member

@camshaft camshaft commented Nov 16, 2022

Issue #, if available:

fixes #93

Description of changes:

As mentioned in the issue, markdown section titles don't have to be unique, but still need a unique identifier. This change adopts the same mechanism as GitHub and adds a counter after the title if it already exists in the document.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@camshaft camshaft marked this pull request as ready for review November 16, 2022 19:58
@camshaft camshaft requested a review from a team as a code owner November 16, 2022 19:58
@camshaft camshaft merged commit 5d31dd2 into main Nov 16, 2022
@camshaft camshaft deleted the camshaft/md-duplicate-section branch November 16, 2022 19:58
@camshaft camshaft mentioned this pull request Nov 16, 2022
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.

Markdown support for duplicate section names
2 participants