diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2018-02-05 14:06:29 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-02-09 22:27:58 +0100 |
commit | 2e95ec6844bf65a25485bdc8e2638e45788f2dcf (patch) | |
tree | 977cee6771f6a45bb446fd40a12afe0453c50d8c /hugolib/page_test.go | |
parent | 76d38d5e5322fc6220fb9e74f9ca0668606ebb5d (diff) |
Add "target" and "rel" parameters to figure shortcode
Also:
- Remove unnecessary space from `figure` tag if no class is specified.
- Update related tests.
- Add test cases for the changes made to the figure shortcode.
- Document the newly added target and rel parameters
- Add more detail to the documentation of all figure shortcode parameters.
Diffstat (limited to 'hugolib/page_test.go')
-rw-r--r-- | hugolib/page_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page_test.go b/hugolib/page_test.go index 5c8c46c9b..3e9e985e2 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -789,7 +789,7 @@ func TestPageWithShortCodeInSummary(t *testing.T) { assertFunc := func(t *testing.T, ext string, pages Pages) { p := pages[0] checkPageTitle(t, p, "Simple") - checkPageContent(t, p, normalizeExpected(ext, "<p>Summary Next Line. \n<figure >\n \n <img src=\"/not/real\" />\n \n \n</figure>\n.\nMore text here.</p>\n\n<p>Some more text</p>\n")) + checkPageContent(t, p, normalizeExpected(ext, "<p>Summary Next Line. \n<figure>\n \n <img src=\"/not/real\" />\n \n \n</figure>\n.\nMore text here.</p>\n\n<p>Some more text</p>\n")) checkPageSummary(t, p, "Summary Next Line. . More text here. Some more text") checkPageType(t, p, "page") } |