-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Badge Component HTML displays in Page Title when used in H1 #688
Comments
|
So this framework, which is meant to be customizable, can only be customized as long as you explicitly don't place a tag in a certain place? I don't appreciate the tone of your response, or your rush to close this issue. Even if I were to place the badge at the end of the header, as per your documentation, it would still display in the sidebar and in the title of the page if I used it in an h1 tag. It can be fixed so easily. You're basically putting me in a position to fork vuepress and make the change myself. Why? |
By default, the HTML in the header should be preserved, so for now we only remove the trailing HTML as the status identifier. And for In addition, since you said Please also pay attention to your tone, I am not what you think, can the programmer be simpler? |
BTW, I had labeled the So you didn't really read the documentation, just thought that this one was very uncomfortable to use, and then sent me such a question —— Many people love this project as much as I do, and we are all trying to do better, so I spent so much time and maintained this project for free. If you just want to complain, PLEASE DON'T use VuePress. |
Because this is a beta feature, I wanted to open an issue to make the maintainers aware of it. I was a little bit surprised that the issue was closed and dismissed so quickly. If the tone of my response was unpleasant, I apologize. I appreciate the work that you do, and any of the other maintainers involved in this project. All I ask is that you don't be so quick to dismiss in the future. As to your point about me complaining, I have submitted a pull request to fix the problem with the meta title. |
See: #689 (comment) Could you close this issue and open a new feature request to support expect(deeplyParseHeaders('# <Comp/> *H1* ')).toBe('# H1')
expect(deeplyParseHeaders('# `<Comp/>` `H1`')).toBe('# <code><Comp></code> H1') Thanks. |
Bug report
Version
0.13.0
Steps to reproduce
vuepress dev
What is expected?
Ideally, I would think that the following would occur:
SAMPLE: Sample Page Title
would be parsed into the head titleSAMPLE: Sample Page Title
would be parsed into the sidebarAt the very least, the HTML should not display.
What is actually happening?
<Badge text="SAMPLE"/> Sample Page Title
.<Badge text="SAMPLE"/> Sample Page Title
.Other relevant information
I am aware that I can override the header using the following front matter:
But, I have a situation where I want to use the badge component to differentiate the page from others.
I am able to use regex to override the theme in order to fix the sidebar, but from what I can tell, the page head title is generated by the vuepress cli.
The text was updated successfully, but these errors were encountered: