tplimpl: Remove speakerdeck shortcode

Fixes #4830
This commit is contained in:
Alexandros 2018-06-09 12:13:36 +03:00 committed by Bjørn Erik Pedersen
parent dc4226a8b2
commit 65deb72dc4
9 changed files with 1 additions and 81 deletions

View file

@ -160,35 +160,6 @@ title: Shorty
}
}
func TestShortcodeSpeakerdeck(t *testing.T) {
t.Parallel()
for _, this := range []struct {
in, expected string
}{
{
`{{< speakerdeck 4e8126e72d853c0060001f97 >}}`,
"(?s)<script async class='speakerdeck-embed' data-id='4e8126e72d853c0060001f97'.*?>.*?</script>",
},
} {
var (
cfg, fs = newTestCfg()
th = testHelper{cfg, fs, t}
)
writeSource(t, fs, filepath.Join("content", "simple.md"), fmt.Sprintf(`---
title: Shorty
---
%s`, this.in))
writeSource(t, fs, filepath.Join("layouts", "_default", "single.html"), `{{ .Content }}`)
buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{})
th.assertFileContentRegexp(filepath.Join("public", "simple", "index.html"), this.expected)
}
}
func TestShortcodeYoutube(t *testing.T) {
t.Parallel()