-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: markdown file inclusion support specify title #4382
Conversation
Could you please help review this PR? Thanks! @brc-dd |
It's bit tricky than that.
|
Indeed, I thought too simply.
I reviewed it and there is no mistake here.
|
Ah right, sorry. So, you're essentially counting number of # in a heading? But this will give prefix length for |
Yeah, you wrote it is better for the situation you mentioned. 👍 |
The interior looks to have handled the situation.
Generally speaking, a page should not have multiple identical titles. If this is the case, perhaps we can keep the current logic and give a warning message. |
@btea Can you review the implementation in #4608? The main change is it using heading ids (the one you see in url fragments) instead of whole title. It solves various cases where there are things like badges or markdown syntax in headings, or even duplicate heading (markdown-it-anchor internally adds The |
Description
Linked Issues
close #4375
Additional Context
Tip
The author of this PR can publish a preview release by commenting
/publish
below.