We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
If dynamic content contains a MathJax block formula $$ ... $$, it is styled differently than in a static markdown file:
$$ ... $$
style="direction: ltr; display: block; text-align: center; margin: 1em 0px; position: relative;"
<!-- @content -->
style="direction: ltr; position: relative;"
So the dynamic MathJax formula is not displayed as a block and not centered. Any ideas why?
math-[id].md:
## Static content $$ a^2 + b^2 = c^2 $$ ## Dynamic content via @content <!-- @content -->
math-[id].paths.ts:
const content = ` $$ a^2 + b^2 = c^2 $$ `; export default { paths() { return [{ params: { id: "pythagoras" }, content: content }]; }, };
Same styling of static and dynamic content.
System: OS: Windows 11 10.0.26100 CPU: (16) x64 AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics Memory: 15.70 GB / 30.67 GB Binaries: Node: 22.11.0 - C:\Program Files\nodejs\node.EXE npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Chromium (131.0.2903.99) Internet Explorer: 11.0.26100.1882 npmPackages: vitepress: ^1.5.0 => 1.5.0
No response
The text was updated successfully, but these errors were encountered:
e812916
It'll be there in next release. You can use nightly releases for now:
npm i https://pkg.pr.new/vitepress@e812916
Sorry, something went wrong.
Wow, that was fast. Thank you @brc-dd!
chore: update vitepress
349954b
Fix vuejs/vitepress#4499
No branches or pull requests
Describe the bug
If dynamic content contains a MathJax block formula
$$ ... $$
, it is styled differently than in a static markdown file:style="direction: ltr; display: block; text-align: center; margin: 1em 0px; position: relative;"
<!-- @content -->
:style="direction: ltr; position: relative;"
So the dynamic MathJax formula is not displayed as a block and not centered. Any ideas why?
Reproduction
Code
math-[id].md:
math-[id].paths.ts:
Expected behavior
Same styling of static and dynamic content.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: