-
Notifications
You must be signed in to change notification settings - Fork 109
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
Positional Attributes are not honoured with Asciidoctor 2.0.0 #219
Comments
This is caused by a very last minute change in asciidoctor 2.0.0 indeed. I'll get a compatibility fix in place asap. |
Fixed in 1.5.16 |
Argh, I didn't mean to introduce this breaking change. I checked the builds, but I got duped by the queue of builds. Travis was reporting the build as green, but the build that would fail was still pending. Now I realize that existing code could be depending on this option name, so I'm going to put a patch in 2.0.1. I don't want to force existing extensions to change. |
There's a far simpler way to solve this problem. Just register both options.
|
@mojavelinux no worries; we spotted it quickly enough. I went for a really quick fix. I’ll come up with something more elegant for diagram v2 (basically the server branch I’m working on). |
My plan is for you to be able to remove this fix once 2.0.1 is out. Users will have to use 2.0.1 instead of 2.0.0, but I think that's a reasonable expectation. |
To reproduce install asciidoctor 2.0.0 and asciidoctor-diagram 1.5.15.
Then create the following document:
Render the document with
asciidoctor -r asciidoctor-diagram test.adoc
.Then check the resulting html.
It contains a reference to a png with a random name instead of
test.svg
:I guess the reason for this is that the option for positional attributes was renamed from
:pos_attrs
to:positional_attrs
and that it has to be fixed here:asciidoctor-diagram/lib/asciidoctor-diagram/extensions.rb
Line 297 in bcc4b06
and
asciidoctor-diagram/lib/asciidoctor-diagram/extensions.rb
Line 315 in bcc4b06
The text was updated successfully, but these errors were encountered: