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? 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
If the alt-text for an image in a markdown file has double quotes, docusaurus will not build.
Yes
![alt text with "quotes"!](../static/img/logo.svg)
The page builds.
The site will not build. The error looks like:
./docs/doc1.md SyntaxError: /sandbox/docs/doc1.md: Unexpected token, expected "}" (65:57) > 65 | <p>{`Has quotes in alt text: `}<img alt={"alt text with "quotes"!"} src={require("!url-loader?limit=10000&name=assets/images/[name]-[hash].[ext]&fallback=file-loader!./../static/img/logo.svg").default} /></p> | ^
It looks to me like the double quotes are not getting escaped.
2.0.0-alpha.66
Reproducible codesandbox: https://codesandbox.io/s/suspicious-brattain-1g5k4?file=/docs/doc1.md:2219-2294
The text was updated successfully, but these errors were encountered:
Fix alt-text/captions that were breaking build
ef8118f
See facebook/docusaurus#3751
e8cacda
Thanks, you are right, our remark plugins should escape those quotes properly
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
🐛 Bug Report
If the alt-text for an image in a markdown file has double quotes, docusaurus will not build.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
![alt text with "quotes"!](../static/img/logo.svg)
Expected behavior
The page builds.
Actual Behavior
The site will not build. The error looks like:
It looks to me like the double quotes are not getting escaped.
Your Environment
2.0.0-alpha.66
Reproducible Demo
Reproducible codesandbox: https://codesandbox.io/s/suspicious-brattain-1g5k4?file=/docs/doc1.md:2219-2294
The text was updated successfully, but these errors were encountered: