hakyll 3.2.4.1 → 3.2.4.2
raw patch · 2 files changed
+3/−4 lines, 2 filesdep ~tagsoup
Dependency ranges changed: tagsoup
Files
- hakyll.cabal +2/−2
- src/Hakyll/Web/Urls.hs +1/−2
hakyll.cabal view
@@ -1,5 +1,5 @@ Name: hakyll-Version: 3.2.4.1+Version: 3.2.4.2 Synopsis: A static website compiler library Description:@@ -77,7 +77,7 @@ process >= 1.0 && < 1.4, regex-base >= 0.93 && < 1.0, regex-pcre >= 0.93 && < 1.0,- tagsoup >= 0.12 && < 0.13,+ tagsoup >= 0.12.6 && < 0.13, time >= 1.1 && < 1.3, unix >= 2.4 && < 2.6
src/Hakyll/Web/Urls.hs view
@@ -16,13 +16,12 @@ -- | Apply a function to each URL on a webpage -- withUrls :: (String -> String) -> String -> String-withUrls f = TS.renderTagsOptions opts . map tag . TS.parseTags+withUrls f = TS.renderTags . map tag . TS.parseTags where tag (TS.TagOpen s a) = TS.TagOpen s $ map attr a tag x = x attr (k, v) = (k, if k `S.member` refs then f v else v) refs = S.fromList ["src", "href"]- opts = TS.renderOptions {TS.optEscape = id} -- | Convert a filepath to an URL starting from the site root --