mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03:00
parent
32471b57bd
commit
d90e37e0c6
442 changed files with 1426 additions and 2254 deletions
|
@ -17,13 +17,12 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"path/filepath"
|
||||
|
||||
"github.com/gohugoio/hugo/deps"
|
||||
|
||||
qt "github.com/frankban/quicktest"
|
||||
|
@ -86,12 +85,14 @@ func TestShortcodeHighlight(t *testing.T) {
|
|||
for _, this := range []struct {
|
||||
in, expected string
|
||||
}{
|
||||
{`{{< highlight java >}}
|
||||
{
|
||||
`{{< highlight java >}}
|
||||
void do();
|
||||
{{< /highlight >}}`,
|
||||
`(?s)<div class="highlight"><pre style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java"`,
|
||||
},
|
||||
{`{{< highlight java "style=friendly" >}}
|
||||
{
|
||||
`{{< highlight java "style=friendly" >}}
|
||||
void do();
|
||||
{{< /highlight >}}`,
|
||||
`(?s)<div class="highlight"><pre style="background-color:#f0f0f0;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java">`,
|
||||
|
@ -205,7 +206,6 @@ title: Shorty
|
|||
|
||||
th.assertFileContentRegexp(filepath.Join("public", "simple", "index.html"), this.expected)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestShortcodeVimeo(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue