aboutsummaryrefslogtreecommitdiffhomepage
path: root/markup
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-02-26 11:27:54 +0100
committerBjørn Erik Pedersen <[email protected]>2022-02-26 21:54:36 +0100
commit2e54c009331dc8c6260d16a55d4a13cfff55054d (patch)
treed253fa8f04cb373703c7e61d6e6f031660308f12 /markup
parent10928a4f781c2faf704825ef95234125812ad860 (diff)
downloadhugo-2e54c009331dc8c6260d16a55d4a13cfff55054d.tar.gz
hugo-2e54c009331dc8c6260d16a55d4a13cfff55054d.zip
markup/goldmark: Unify some code block tests
Diffstat (limited to 'markup')
-rw-r--r--markup/goldmark/codeblocks/integration_test.go19
-rw-r--r--markup/goldmark/integration_test.go3
2 files changed, 8 insertions, 14 deletions
diff --git a/markup/goldmark/codeblocks/integration_test.go b/markup/goldmark/codeblocks/integration_test.go
index 0c9039cec..01510fc81 100644
--- a/markup/goldmark/codeblocks/integration_test.go
+++ b/markup/goldmark/codeblocks/integration_test.go
@@ -14,7 +14,6 @@
package codeblocks_test
import (
- "strings"
"testing"
"github.com/gohugoio/hugo/hugolib"
@@ -54,25 +53,25 @@ title: "p1"
## Ascii Diagram
-CODE_FENCEgoat { width="600" }
+§§§goat { width="600" }
--->
-CODE_FENCE
+§§§
## Go Code
-CODE_FENCEgo
+§§§go
fmt.Println("Hello, World!");
-CODE_FENCE
+§§§
## Golang Code
-CODE_FENCEgolang
+§§§golang
fmt.Println("Hello, Golang!");
-CODE_FENCE
+§§§
## Bash Code
-CODE_FENCEbash { linenos=inline,hl_lines=[2,"5-6"],linenostart=32 class=blue }
+§§§bash { linenos=inline,hl_lines=[2,"5-6"],linenostart=32 class=blue }
echo "l1";
echo "l2";
echo "l3";
@@ -81,11 +80,9 @@ echo "l5";
echo "l6";
echo "l7";
echo "l8";
-CODE_FENCE
+§§§
`
- files = strings.ReplaceAll(files, "CODE_FENCE", "```")
-
b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: t,
diff --git a/markup/goldmark/integration_test.go b/markup/goldmark/integration_test.go
index f1fa745c5..16705ad62 100644
--- a/markup/goldmark/integration_test.go
+++ b/markup/goldmark/integration_test.go
@@ -250,9 +250,6 @@ LINE8
`
- // Code fences
- files = strings.ReplaceAll(files, "§§§", "```")
-
b := hugolib.NewIntegrationTestBuilder(
hugolib.IntegrationTestConfig{
T: t,