diff options
author | tdro <tdro@noreply.example.com> | 2023-12-30 16:39:52 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-12-30 16:39:52 -0500 |
commit | 33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97 (patch) | |
tree | 0ab9350713cd6a786bb7d29312ed7f0ae00a7f6a | |
parent | bcbdc6c0cd41f8c62818aa0469bfb70030fba6ed (diff) | |
download | canory-33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97.tar.gz canory-33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97.tar.bz2 canory-33d58fdb13e0f8c6aa9009f6953f2672ff5a3c97.zip |
config: Remove figure fix
-rw-r--r-- | config.json | 2 | ||||
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | config.yaml | 2 | ||||
-rw-r--r-- | themes/default/layouts/partials/function-content.html | 7 |
4 files changed, 3 insertions, 10 deletions
diff --git a/config.json b/config.json index b47f23d..5234cb5 100644 --- a/config.json +++ b/config.json @@ -406,7 +406,7 @@ }, "autoHeadingID": true, "autoHeadingIDType": "github", - "wrapStandAloneImageWithinParagraph": true + "wrapStandAloneImageWithinParagraph": false }, "renderer": { "hardWraps": false, diff --git a/config.toml b/config.toml index 0af2921..c92482b 100644 --- a/config.toml +++ b/config.toml @@ -291,7 +291,7 @@ enableRobotsTXT = true [markup.goldmark.parser] autoHeadingID = true autoHeadingIDType = "github" - wrapStandAloneImageWithinParagraph = true + wrapStandAloneImageWithinParagraph = false [markup.goldmark.parser.attribute] block = false title = true diff --git a/config.yaml b/config.yaml index 023090b..cd5b917 100644 --- a/config.yaml +++ b/config.yaml @@ -288,7 +288,7 @@ markup: title: true autoHeadingID: true autoHeadingIDType: github - wrapStandAloneImageWithinParagraph: true + wrapStandAloneImageWithinParagraph: false renderer: hardWraps: false unsafe: false diff --git a/themes/default/layouts/partials/function-content.html b/themes/default/layouts/partials/function-content.html index f206a03..19c15ea 100644 --- a/themes/default/layouts/partials/function-content.html +++ b/themes/default/layouts/partials/function-content.html @@ -2,13 +2,6 @@ {{- $content := $pageContext.Content -}} {{- $expired := and .ExpiryDate (ge now.Unix .ExpiryDate.Unix) -}} -{{- - $content = $content | - replaceRE "<p><figure>" "<figure>" | - replaceRE "<p>\n<figure>" "<figure>" | - replaceRE "</figure></p>" "</figure>" | --}} - {{- $brokenBlockquotes := findRE `(?sU)</blockquote>\n<p>(–|—).*</p>` .Content -}} {{- range $brokenBlockquote := $brokenBlockquotes -}} |