mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
@@ -122,7 +122,7 @@ Footnotes:
|
||||
|
||||
`
|
||||
|
||||
var pageContentAutoSummary = strings.Replace(pageContentAndSummaryDivider, "<!--more-->", "", 1)
|
||||
pageContentAutoSummary := strings.Replace(pageContentAndSummaryDivider, "<!--more-->", "", 1)
|
||||
|
||||
b := newTestSitesBuilder(t).WithConfigFile("toml", configFile)
|
||||
b.WithTemplatesAdded("shortcodes/markdown-shortcode.html", `
|
||||
@@ -282,12 +282,10 @@ Some **Markdown** in JSON shortcode.
|
||||
// Markdown vs shortcodes
|
||||
// Check that all footnotes are grouped (even those from inside the shortcode)
|
||||
b.AssertFileContentRe("public/blog/markyshort/index.html", `Footnotes:.*<ol>.*Fn 1.*Fn 2.*Fn 3.*</ol>`)
|
||||
|
||||
}
|
||||
|
||||
// https://github.com/golang/go/issues/30286
|
||||
func TestDataRace(t *testing.T) {
|
||||
|
||||
const page = `
|
||||
---
|
||||
title: "The Page"
|
||||
|
Reference in New Issue
Block a user