From 504a23184f035a0de816cc29070e5d0920e23ed0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?=
This is a note with some whitespace after the alert type. This is a tip. This is a caution with some whitespace before the alert type.\n
\n")
+ b.AssertFileContentExact("public/p1/index.html", "Content: \n
\n")
}
func TestBlockquObsidianWithTitleAndSign(t *testing.T) {
@@ -138,19 +138,16 @@ title: "Home"
-- layouts/index.html --
{{ .Content }}
-- layouts/_default/_markup/render-blockquote.html --
-AlertType: {{ .AlertType }}|
-AlertTitle: {{ .AlertTitle }}|
-AlertSign: {{ .AlertSign | safeHTML }}|
-Text: {{ .Text }}|
+AlertType: {{ .AlertType }}|AlertTitle: {{ .AlertTitle }}|AlertSign: {{ .AlertSign | safeHTML }}|Text: {{ .Text }}|
`
b := hugolib.Test(t, files)
- b.AssertFileContent("public/index.html",
- "AlertType: tip|\nAlertTitle: Callouts can have custom titles|\nAlertSign: |",
- "AlertType: tip|\nAlertTitle: Title-only callout
Yes!", - "AlertType: faq|\nAlertTitle: Foldable callout|\nAlertSign: +|", - "AlertType: danger|\nAlertTitle: |\nAlertSign: |\nText:
Do not approach or handle without protective gear.
\n|", + b.AssertFileContentExact("public/index.html", + "AlertType: tip|AlertTitle: Callouts can have custom titles|AlertSign: |", + "AlertType: tip|AlertTitle: Title-only callout|AlertSign: |", + "AlertType: faq|AlertTitle: Foldable negated callout|AlertSign: -|Text:Yes!", + "AlertType: faq|AlertTitle: Foldable callout|AlertSign: +|", + "AlertType: danger|AlertTitle: |AlertSign: |Text:
Do not approach or handle without protective gear.
\n|", ) }