Skip to content
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

Starlight Blog doesn't override MarkdownContent.astro since Starlight Image Zoom was added #22

Open
trueberryless opened this issue Nov 1, 2024 · 0 comments

Comments

@trueberryless
Copy link

Hello!

I think you have a unnoticed problem with your blog because if you look at the one blog post, you'll see that the author and creatingTime and all the features from Starlight Blog aren't rendering properly any more. This unintended behaviour is probably since 7cd6c6e (addition of Starlight Image Zoom).

The reason for this problem is as following: Starlight Image Zoom AND Starlight Blog plugins both try to override the MarkdownContent.astro component from Starlight. This doesn't work because only ONE plugin can override a component. Hence, the Starlight Blog gives you a warning in the build process, that it can't override the MarkdownContent.astro component any more (but it doesn't through an error, so it builds successfully).

Unfortunately, I currently have no solution to this problem because I can't figure out how to override the component correctly.

Fortunately, I'm currently trying to figure out how to make both plugins work together by writing with the creator of both plugins: HiDeoo.

If I remember, I'll create a PR for you which should fix this issue when I have figured out how I can override it correctly.

In the meantime: You could comment the integration of Starlight Image Zoom:

integrations: [
		starlight({
			plugins: [
				//starlightImageZoom(),
				starlightBlog({
					authors: {
						nighthouse: {
						name: 'nighthouse',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant