@@ -365,11 +365,6 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) {
365
365
c .Assert (frTags ["FRtag1" ], qt .Not (qt .IsNil ))
366
366
b .AssertFileContent ("public/fr/plaques/FRtag1/index.html" , "FRtag1|Bonjour|http://example.com/blog/fr/plaques/FRtag1/" )
367
367
368
- // Check Blackfriday config
369
- c .Assert (strings .Contains (content (doc1fr ), "«" ), qt .Equals , true )
370
- c .Assert (strings .Contains (content (doc1en ), "«" ), qt .Equals , false )
371
- c .Assert (strings .Contains (content (doc1en ), "“" ), qt .Equals , true )
372
-
373
368
// en and nn have custom site menus
374
369
c .Assert (len (frSite .Menus ()), qt .Equals , 0 )
375
370
c .Assert (len (enSite .Menus ()), qt .Equals , 1 )
@@ -796,39 +791,6 @@ categories: ["mycat"]
796
791
}
797
792
}
798
793
799
- // https://github.com/gohugoio/hugo/issues/5777
800
- func TestTableOfContentsInShortcodes (t * testing.T ) {
801
- t .Parallel ()
802
-
803
- b := newMultiSiteTestDefaultBuilder (t )
804
-
805
- b .WithTemplatesAdded ("layouts/shortcodes/toc.html" , tocShortcode )
806
- b .WithTemplatesAdded ("layouts/shortcodes/wrapper.html" , "{{ .Inner }}" )
807
- b .WithContent ("post/simple.en.md" , tocPageSimple )
808
- b .WithContent ("post/variants1.en.md" , tocPageVariants1 )
809
- b .WithContent ("post/variants2.en.md" , tocPageVariants2 )
810
-
811
- b .WithContent ("post/withSCInHeading.en.md" , tocPageWithShortcodesInHeadings )
812
-
813
- b .CreateSites ().Build (BuildCfg {})
814
-
815
- b .AssertFileContent ("public/en/post/simple/index.html" ,
816
- tocPageSimpleExpected ,
817
- // Make sure it is inserted twice
818
- `TOC1: <nav id="TableOfContents">` ,
819
- `TOC2: <nav id="TableOfContents">` ,
820
- )
821
-
822
- b .AssertFileContentFn ("public/en/post/variants1/index.html" , func (s string ) bool {
823
- return strings .Count (s , "TableOfContents" ) == 4
824
- })
825
- b .AssertFileContentFn ("public/en/post/variants2/index.html" , func (s string ) bool {
826
- return strings .Count (s , "TableOfContents" ) == 6
827
- })
828
-
829
- b .AssertFileContent ("public/en/post/withSCInHeading/index.html" , tocPageWithShortcodesInHeadingsExpected )
830
- }
831
-
832
794
var tocShortcode = `
833
795
TOC1: {{ .Page.TableOfContents }}
834
796
@@ -970,12 +932,6 @@ enableRobotsTXT = true
970
932
[permalinks]
971
933
other = "/somewhere/else/:filename"
972
934
973
- # TODO(bep)
974
- [markup]
975
- defaultMarkdownHandler = "blackfriday"
976
- [markup.blackfriday]
977
- angledQuotes = true
978
-
979
935
[Taxonomies]
980
936
tag = "tags"
981
937
@@ -984,8 +940,6 @@ tag = "tags"
984
940
weight = 10
985
941
title = "In English"
986
942
languageName = "English"
987
- [Languages.en.blackfriday]
988
- angledQuotes = false
989
943
[[Languages.en.menu.main]]
990
944
url = "/"
991
945
name = "Home"
@@ -1031,12 +985,6 @@ enableRobotsTXT: true
1031
985
permalinks:
1032
986
other: "/somewhere/else/:filename"
1033
987
1034
- # TODO(bep)
1035
- markup:
1036
- defaultMarkdownHandler: blackfriday
1037
- blackFriday:
1038
- angledQuotes: true
1039
-
1040
988
Taxonomies:
1041
989
tag: "tags"
1042
990
@@ -1045,8 +993,6 @@ Languages:
1045
993
weight: 10
1046
994
title: "In English"
1047
995
languageName: "English"
1048
- blackfriday:
1049
- angledQuotes: false
1050
996
menu:
1051
997
main:
1052
998
- url: "/"
@@ -1092,12 +1038,6 @@ var multiSiteJSONConfigTemplate = `
1092
1038
"permalinks": {
1093
1039
"other": "/somewhere/else/:filename"
1094
1040
},
1095
- "markup": {
1096
- "defaultMarkdownHandler": "blackfriday",
1097
- "blackfriday": {
1098
- "angledQuotes": true
1099
- }
1100
- },
1101
1041
"Taxonomies": {
1102
1042
"tag": "tags"
1103
1043
},
@@ -1106,9 +1046,6 @@ var multiSiteJSONConfigTemplate = `
1106
1046
"weight": 10,
1107
1047
"title": "In English",
1108
1048
"languageName": "English",
1109
- "blackfriday": {
1110
- "angledQuotes": false
1111
- },
1112
1049
"menu": {
1113
1050
"main": [
1114
1051
{
0 commit comments