asciidoctor-vscode icon indicating copy to clipboard operation
asciidoctor-vscode copied to clipboard

Suport for docfile, docfilesuffix, docname attributes

Open GauntletPL opened this issue 4 years ago • 2 comments

Using {docfile}, {docfilesuffix} or {docname} attributes defined in official asciidoctor manual (https://asciidoctor.org/docs/user-manual/#env-attributes) does not produce any results. At the same time {docdir} works perfectly fine.

image

image

GauntletPL avatar May 15 '20 16:05 GauntletPL

We run Asciidoctor by passing the document to stdin not writing to the filesystem which is why these attributes don't appear (and so you can have a preview without saving your file)

That's not to say that we can't set them when we call the processor though, it's a fairly simple change.

danyill avatar May 15 '20 20:05 danyill

We get docdir because we explicitly set base_dir. I'll do a PR for this.

danyill avatar May 15 '20 20:05 danyill