Open Mister-Hope opened 1 month ago
Totals | |
---|---|
Change from base Build 11266064405: | 0.0% |
Covered Lines: | 648 |
Relevant Lines: | 906 |
Then the markdown.headers
option should default to false
?
Could headers be server-side rendered after the change?
I think the header information might still be required on the page object, but we should no longer pass it to client data by default.
I see. What about SSR? Seems that helper pkg is using DOM api to get headers.
A toc is not needed for ssr I think. VitePress is doing the same, the full content dom is already rendered.
This reduces page data size by removing headers info from page data, downstream themes can infer headers via dom structure with
@vuepress/helper
and they can manually write it to page data if necessary.