Open saneef opened 11 months ago
@mojavelinux I vaguely remember a discussion about it but I don't recall what needs to be done? Does that ring a bell?
Based on this comment, I reworked the plugin in which I'm using asciidoctor.js. Now I'm creating new registry for each call to convert()
Should we close this issue? May we should add a note in documentation.
Based on https://github.com/asciidoctor/asciidoctor-kroki/issues/421#issuecomment-1649374749, I reworked the plugin in which I'm using asciidoctor.js. Now I'm creating new registry for each call to convert()
Thanks that's the comment I was looking for!
Should we close this issue? May we should add a note in documentation.
Yes, we should add a callout/admonition in: https://docs.asciidoctor.org/asciidoctor.js/latest/extend/extensions/register/
I vaguely remember a discussion about it but I don't recall what needs to be done? Does that ring a bell?
I think you're referring to https://github.com/asciidoctor/asciidoctor/issues/4256.
When I reuse an
registry
, in subsequent calls toconvert()
, the registered extensions don't work.See the sample code, which is based on an example from docs:
The same code works fine in v2.2.x.
Is this a bug, or am I doing something wrong?
I encountered this issue when I was trying to find a fix for saneef/eleventy-plugin-asciidoc#10.