commonmark-pandoc 0.2.2.2 → 0.2.2.3
raw patch · 3 files changed
+8/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +5/−0
- commonmark-pandoc.cabal +1/−1
- src/Commonmark/Pandoc.hs +2/−0
changelog.md view
@@ -1,5 +1,10 @@ # Changelog for commonmark-pandoc +## 0.2.2.3++- Avoid adding spurious extra data-pos attribute to wrapper+ Div (#159).+ ## 0.2.2.2 - Add wrapper="1" when we need to add Div or Span. This is needed for
commonmark-pandoc.cabal view
@@ -1,5 +1,5 @@ name: commonmark-pandoc-version: 0.2.2.2+version: 0.2.2.3 synopsis: Bridge between commonmark and pandoc AST. description: This library provides typeclasses for rendering commonmark to Pandoc types.
src/Commonmark/Pandoc.hs view
@@ -222,6 +222,8 @@ Span (addToPandocAttr (("wrapper","1"):attrs) nullAttr) [x] addToPandocAttr :: Attributes -> Attr -> Attr+-- avoid adding spurious extra data-pos to wrapper div (#159):+addToPandocAttr [("data-pos", _)] attrs@(_,_,("wrapper","1"):_) = attrs addToPandocAttr attrs attr = foldr go attr attrs where go ("id", v) (_, cls, kvs) = (v, cls, kvs)