diff options
Diffstat (limited to 'markup')
-rw-r--r-- | markup/asciidocext/convert.go | 5 | ||||
-rw-r--r-- | markup/pandoc/convert.go | 4 | ||||
-rw-r--r-- | markup/rst/convert.go | 4 |
3 files changed, 13 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() != "" } diff --git a/markup/pandoc/convert.go b/markup/pandoc/convert.go index 63bab2748..1c25e41d2 100644 --- a/markup/pandoc/convert.go +++ b/markup/pandoc/convert.go @@ -16,6 +16,7 @@ package pandoc import ( "github.com/cli/safeexec" + "github.com/gohugoio/hugo/htesting" "github.com/gohugoio/hugo/identity" "github.com/gohugoio/hugo/markup/internal" @@ -74,5 +75,8 @@ func getPandocExecPath() string { // Supports returns whether Pandoc is installed on this computer. func Supports() bool { + if htesting.SupportsAll() { + return true + } return getPandocExecPath() != "" } diff --git a/markup/rst/convert.go b/markup/rst/convert.go index faed56276..9fea61dd1 100644 --- a/markup/rst/convert.go +++ b/markup/rst/convert.go @@ -19,6 +19,7 @@ import ( "runtime" "github.com/cli/safeexec" + "github.com/gohugoio/hugo/htesting" "github.com/gohugoio/hugo/identity" "github.com/gohugoio/hugo/markup/internal" @@ -109,5 +110,8 @@ func getRstExecPath() string { // Supports returns whether rst is installed on this computer. func Supports() bool { + if htesting.SupportsAll() { + return true + } return getRstExecPath() != "" } |