-
Notifications
You must be signed in to change notification settings - Fork 868
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
[Feature Request] Make <a/> tag in headers optional when outputFormat: markdown #9720
Comments
docfx/src/Docfx.Build/ApiPage/ApiPageMarkdownTemplate.cs Lines 50 to 51 in 46723af
Ah, this should be an intended anchor tag. I see. There would be some folks like me who aim to use these generated markdowns as a source to build the final HTML... So, making it optional whether to include the anchor tags in headings (and any other stuff intended to be included in the markdown as the final product) should introduce more flexibility to the markdown output usage? |
The |
Yes, I understand they act as anchor tags, as you noted. However, when more markdown rendering options are introduced later, I think the generation of the For now, I'll set up a post-process for the trimming the output. Thank you for introducing the markdown generation feature. 💞 |
Looks like a legitimate request. |
<a/>
tag is rendered in markdown H1 title
Thanks. |
Update:If the |
Describe the bug
A rendered markdown file includes an empty
<a/>
tag in the markdown H1 title.For example:
Is this rendered for a reason, or is it a bug? What is the role of this element?
To Reproduce
Steps to reproduce the behavior:
Run docfx with
metadata.outputFormat: "markdown"
option.Whole docfx.json
Expected behavior
If rendering this empty
<a/>
element is unnecessary, I expect this not to be included in the markdown file.Context (please complete the following information):
Additional context
I'm working on a Unity package project, and I referenced the docfx settings of https://github.com/CaseyHofland/docfx-unitypackage.
The text was updated successfully, but these errors were encountered: