-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
🐛 BUG: HTML doesn't work in markdown #3220
Comments
This seems to be an issue with our Markdown integration, likely coming from the way components are handled in |
* feat: use internal MDX tooling for markdown + components * fix: improve MD + component tests * chore: add changeset * fix: make tsc happy * fix(#3319): add regression test for component children * fix(markdown): support HTML comments in markdown * fix(#2474): ensure namespaced components are properly handled in markdown pages * fix(#3220): ensure html in markdown pages does not have extra surrounding space * fix(#3264): ensure that remark files pass in file information * fix(#3254): enable experimentalStaticExtraction for `.md` pages * fix: revert parsing change * fix: remove `markdown.mode` option
@natemoo-re I am still getting a broken build when I try to use HTML in markdown. I get this error
|
We are tracking a handful of regressions that were introduced by the PR that closed this issue. You can look at the I'm going to keep this particular issue closed since the original problem in the PR description has been fixed. |
* feat: use internal MDX tooling for markdown + components * fix: improve MD + component tests * chore: add changeset * fix: make tsc happy * fix(withastro#3319): add regression test for component children * fix(markdown): support HTML comments in markdown * fix(withastro#2474): ensure namespaced components are properly handled in markdown pages * fix(withastro#3220): ensure html in markdown pages does not have extra surrounding space * fix(withastro#3264): ensure that remark files pass in file information * fix(withastro#3254): enable experimentalStaticExtraction for `.md` pages * fix: revert parsing change * fix: remove `markdown.mode` option
What version of
astro
are you using?1.0.0-beta.18
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
I’m using the built-in component to render HTML from a markdown file. It’s working just fine, but when I put HTML inside the markdown file, it duplicates some of the text content and produces weird spacing. For instance, if I put in
content
, I get extra spacing around the word “content”, and my other plain text preceding the code-tag is duplicated. It worked when I was able to use {content.astro.html} in an earlier version of Astro.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ut8fqd
Participation
The text was updated successfully, but these errors were encountered: