pandoc-link-context 1.2.0.0 → 1.4.0.0
raw patch · 3 files changed
+6/−10 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- pandoc-link-context.cabal +2/−2
- src/Text/Pandoc/LinkContext.hs +0/−8
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for pandoc-link-context +## 1.4.0.0++- Remove definition list handling. Fixes https://github.com/srid/emanote/issues/275+ ## 1.2.0.0 - Include Link attributes (excluded id/class) in results
pandoc-link-context.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: pandoc-link-context-version: 1.2.0.0+version: 1.4.0.0 synopsis: Extract "contextual links" from Pandoc description: A library to pull out all links with their surrounding context in your Pandoc documents. Useful for software dealing with wiki-links and Zettelkasten. category: Text@@ -16,7 +16,7 @@ hs-source-dirs: src exposed-modules: Text.Pandoc.LinkContext build-depends:- base >=4.12 && < 4.15+ base >=4.12 && < 4.17 , containers , pandoc-types , relude >=0.7.0.0
src/Text/Pandoc/LinkContext.hs view
@@ -32,14 +32,6 @@ queryLinkUrls is B.Header _ _ is -> queryLinkUrls is- B.DefinitionList xs ->- -- Gather all filenames linked, and have them put (see above) in the- -- same definition list block.- concat $- xs <&> \(is, bss) ->- let def = queryLinkUrls is- body = fmap (fmap (fmap fst . go)) bss- in def <> fmap (,[]) (concat (concat body)) _ -> mempty queryLinkUrls :: W.Walkable Inline b => b -> [(Url, [OtherAttr])]