You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v4.7.1
Node v20.12.2
System Linux (x64)
Package Manager pnpm
Output static
Adapter none
Integrations @astrojs/mdx
@astrojs/sitemap
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have defined a path alias in my tsconfig.json file to my src/assets directory called @assets. I have used the path alias in the front-matter of a markdown file and in the body of the markdown file. The path alias is not processed in the same way as it is in the image link in the markdown file.
What's the expected result?
According to the documentation, images are processed in frontmatter the same way as they are in Markdown files, meaning that I can either use a relative path or an import alias to find the correct file.
In the sample provided, in the "Markdown Style Guide" blog page, I assign this path to my heroImage property, and also use it in my blog post. I expect the photo to be visible in both locations on the page, but only the image in the article is visible.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have defined a path alias in my
tsconfig.json
file to mysrc/assets
directory called@assets
. I have used the path alias in the front-matter of a markdown file and in the body of the markdown file. The path alias is not processed in the same way as it is in the image link in the markdown file.What's the expected result?
According to the documentation, images are processed in frontmatter the same way as they are in Markdown files, meaning that I can either use a relative path or an import alias to find the correct file.
In the sample provided, in the "Markdown Style Guide" blog page, I assign this path to my
heroImage
property, and also use it in my blog post. I expect the photo to be visible in both locations on the page, but only the image in the article is visible.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-frac3r?file=src%2Fcontent%2Fblog%2Fmarkdown-style-guide.md
Participation
The text was updated successfully, but these errors were encountered: