summaryrefslogtreecommitdiffstats
path: root/markup/rst
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-23 09:26:23 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-30 17:32:25 +0100
commitcea157402365f34a69882110a4208999728007a6 (patch)
treebc29f699e7c901c219cffc5f50fba99dca53d5bd /markup/rst
parentf9f779786edcefc4449a14cfc04dd93379f71373 (diff)
Add Dart Sass support
But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021. Fixes #7380 Fixes #8102
Diffstat (limited to 'markup/rst')
-rw-r--r--markup/rst/convert.go4
1 files changed, 4 insertions, 0 deletions
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() != ""
}