diff options
Diffstat (limited to 'markup/asciidocext')
-rw-r--r-- | markup/asciidocext/convert.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/markup/asciidocext/convert.go b/markup/asciidocext/convert.go index a5465fe9f..51f114be2 100644 --- a/markup/asciidocext/convert.go +++ b/markup/asciidocext/convert.go @@ -20,6 +20,8 @@ import ( "bytes" "path/filepath" + "github.com/gohugoio/hugo/htesting" + "github.com/cli/safeexec" "github.com/gohugoio/hugo/identity" @@ -309,5 +311,8 @@ func nodeContent(node *html.Node) string { // Supports returns whether Asciidoctor is installed on this computer. func Supports() bool { + if htesting.SupportsAll() { + return true + } return getAsciidoctorExecPath() != "" } |