Closed amatiasq closed 3 years ago
The same happens with self closing tags
<Markdown content="# Test" />
I tried adding console.log()
to node_modules/astro/components/Markdown.astro
and running npx astro --reload
but couldn't get the logs to print.
Just started with Astro and ran into this today. Maybe I overlooked something?
This is a slightly modified version of the Astro codesandbox:
I would consider this a fairly important issue as injecting markdown from external sources is probably a pretty common use case.
Thanks! After taking a look, the problem is not in the Markdown component but in the compiler. Marking this as to be fixed in the new compiler.
This is actually blocking me from using Astro, do we know when the new compiler might be delivered?
@matthewp, thanks for following up on this! I had a look at the compiler-v2 repo and from the looks of it this is still quite a while out and not even sure to become astro's future compiler. Could you comment on how probable you think the v2 compiler will actually become the new compiler for astro and when that might happen. Assuming this might be a while, is there any chance of getting this bug fixed in the current compiler?
It would be very helpful to be able to use the markdown component with remote markdown, e.g. for being able to use expressions (which I hope is possible)
We're targeting a mid-September for our first preview release using the new compiler, landing in npm install astro
by October at the latest.
@FredKSchott, many thanks for the update, looking forward to it!
It took us a lot longer than we expected, but astro@next
has been merged to main
and is now in preview!
This is definitely fixed in that version. See working reproduction!
Following up on my previous comment, the team has decided to close out issues that have been confirmed as fixed by astro@0.21.0-next.0, astro@0.21.0-next.1, or astro@0.21.0-next.2. Our hope is that this will help the v0.21 milestone remain as actionable as possible.
To verify that this issue has been fixed, you may
astro@next
project on StackBlitzastro@next
preview
npm i astro@next
# If using Framework renderers...
npm i @astrojs/renderer-name@next
If you think we made a mistake, please reopen this issue!
If you run into any other problems with astro@next
, please open a new issue.
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Whenever I try to use the
<Markdown content="anything"></Markdown>
it crashesSteps to Reproduce
Expected behaviour
It should render index page with
Test
in a<h1>
Actual result
Link to Minimal Reproducible Example (Optional)
https://github.com/amatiasq/astro-bug-markdown-content