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

How to configure the extensions #31

Open
beyondlex opened this issue Aug 8, 2024 · 1 comment
Open

How to configure the extensions #31

beyondlex opened this issue Aug 8, 2024 · 1 comment

Comments

@beyondlex
Copy link

Hi! Thanks for this awesome plugin! I want to know if it is possible to integrate the Asciidoctor diagram extension asciidoctor-kroki as an extension of astro-asciidoc?

export default defineConfig({
  integrations: [
    asciidoc({
      options: {},
      extensions: [ 'asciidoctor-kroki' ], // Is this possible ? 
    },
  ]
})
@shishkin
Copy link
Owner

Thanks. Yes, it should be possible. Did you try it and had any issued with that? As long as asciidoctor options are serializable as JSON (e.g. not contain JS functions), they will be passed to asciidoctor "as is". Let me know if it doesn't work.

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

2 participants