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

Add markdown options to AuthorOptions and add example usage #187

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yuhanawa
Copy link
Contributor

#185

export default defineTheme({
	// ..
	markdown: ({ config, astroConfig }) => ({
		remarkPlugins: [config.toc && [remarkToc, { heading: "toc", maxDepth: 3 }]],
	}),
});

or

	markdown: {
	      remarkPlugins: ({ config, astroConfig }) => [config.toc && [remarkToc, { heading: "toc", maxDepth: 3 }]]);
        }

Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for astro-theme-provider canceled.

Name Link
🔨 Latest commit f462f04
🔍 Latest deploy log https://app.netlify.com/sites/astro-theme-provider/deploys/675a7e697ca8a90008fa7210

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

Successfully merging this pull request may close these issues.

1 participant