I'm having some issues understanding how images work in markdown because the docs say things should work but in many cases I get an error like this one:
Parse failure: Octal literal in strict mode (9:130)
At file: E:/Dev/snape.me/src/content/posts/2009/04/using-integration-services-to-populate-a-date-dimension.md
Contents of line 9: 'image_3.png': await getImageSafely((await import("image_3.png")).default, "image_3.png", "/E:\Dev\snape.me\src\content\posts\2009\04\image_3.png")
As far as I can work out its having an issue with the 2009/04 part of the URL where my content is posted.
I don't get this error when I use an image path outside of the content tree. So:
- public/images/image_3.png works (public)
- @assets/images/rjrwebdesign_3.png (src/assets) works when I convert the md to mdx and import
If I move the markdown to a different folder e.g. /posts/using-integration-services-to-populate-a-date-dimension.md then I can also get it to load an image in the same path as the markdown page.
This is a very basic blog that I'm working on. Code is here: https://github.com/jsnape/snape.me versions below.
"dependencies": {
"<@&1055234544183287879>/mdx": "^1.0.1",
"astro": "^3.0.7"
},
"devDependencies": {
"<@&1055234544183287879>/tailwind": "^5.0.0",
"@tailwindcss/typography": "^0.5.9",
"tailwindcss": "^3.3.3"
}
A simple question - is the octal issue with content in ...2009/06... paths a bug or just not allowed?
I would prefer to to be allowed so I can replicate my existing wordpress site.
Open a New Issue