title: How to resemble the PDF-output of AsciidocFX using a Gradle build-script?
body: <p>I have the following Asciidoc-document:</p>
  
  <pre><code>= Test
  :doctype: article
  :notitle:
  :!toc:
  
  AsciidocFX shows links in PDFs as footnotes http://stackoverflow.com[SO].
  
  .Asciidoc in PDF does not work in Asciidoctor, but works in AsciidocFX.
  [cols="2,5a"]
  |===
  |Line with Asciidoc code
  |here comes a list:
  
  * item 1
  * item 2
  * item 3
  
  http://stackoverflow.com[Get Answers]!
  
  |Line
  |with a footnotefootnote:[footnotes do work in AsciidocFX's PDF output (but not in the preview).]
  
  |===
  </code></pre>
  
  <p>When generating a PDF using asciidoctor, the output is as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/qRLCt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qRLCt.png" alt="Output by asciidoctor"></a></p>
  
  <p>The problems are:</p>
  
  <ul>
  <li>footnotes are shown inline (see: <a href="https://github.com/asciidoctor/asciidoctor-pdf/issues/73" rel="nofollow noreferrer">https://github.com/asciidoctor/asciidoctor-pdf/issues/73</a>)</li>
  <li>Asciidoc-content in tables cells is not interpreted: <a href="https://github.com/asciidoctor/asciidoctor-pdf/issues/6" rel="nofollow noreferrer">https://github.com/asciidoctor/asciidoctor-pdf/issues/6</a></li>
  <li>Link targets are not shown as Footnotes (this would be nice to have)</li>
  </ul>
  
  <p>Using <a href="https://github.com/asciidocfx/AsciidocFX" rel="nofollow noreferrer">https://github.com/asciidocfx/AsciidocFX</a> shows everything correctly:</p>
  
  <p><a href="https://i.stack.imgur.com/NEoYG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NEoYG.png" alt="Output of AsciidocFX"></a></p>
  
  <p>Now, I'd like to have the same output that AsciidocFX produces, but still like to use my Gradle build-script.</p>
  
  <p>From <a href="https://github.com/asciidoctor/asciidoctor-pdf/issues/73#issuecomment-224327058" rel="nofollow noreferrer">https://github.com/asciidoctor/asciidoctor-pdf/issues/73#issuecomment-224327058</a> I learned, that AsciidoctorFX uses <a href="https://github.com/asciidoctor/asciidoctor-fopub[asciidoctor-fopub]" rel="nofollow noreferrer">https://github.com/asciidoctor/asciidoctor-fopub[asciidoctor-fopub]</a> under the hood. But <strong>how can I this pipeline in my build.gradle</strong>. Do I have to generate epub in a first task and use the output in another task? Or is there a direkt way?</p>