Skip to content

🐛 BUG: HTML doesn't work in markdown #3220

@daviatkea

Description

@daviatkea

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

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: nice to haveNot breaking anything but nice to have (priority)feat: markdownRelated to Markdown (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions