asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

1.7.2 - attributes - docname not set for preview #474

Closed pstueck closed 4 years ago

pstueck commented 4 years ago

Bug originally posted on Asciidoctor#475. I was told it has to be an AsciidoctorFX issue.

Copied from Asciidoctor ...

When I have a document named "myADoc.adoc" with an active preview pane, a code snippet like …

\{docname} is {docname}
\{outfilesuffix} is {outfilesuffix}

displays in the preview pane as

{docname} is {docname} {outfilesuffix} is .html

but what I expect to see is …

{docname} is myADoc {outfilesuffix} is .html

Thus something like …

ifeval::["myADoc" == "{docname}"]
// do some stuff specifically for this file
endif::[]

never does work in preview :-(

Regards Peter

rahmanusta commented 4 years ago

Hi,

Can you please try https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.3 ?

rahmanusta commented 4 years ago

Thanks!

I'm closing the current issue. Let me know if you require further help.