packages feed

skylighting-format-blaze-html 0.1.2 → 0.1.2.1

raw patch · 3 files changed

+17/−10 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

changelog.md view
@@ -1,15 +1,20 @@ # Changelog for skylighting-format-blaze-html +## 0.1.2.1++* Ensure that per-line anchors have aria-labels. Otherwise screen+  readers will read out the `href` attribute.+ ## 0.1.2 -  * Include container classes on inline code. In block code,-    these are put on the pre, but in inline code there is only a-    code element; they should not just be dropped. See jgm/pandoc#11423.+* Include container classes on inline code. In block code,+  these are put on the pre, but in inline code there is only a+  code element; they should not just be dropped. See jgm/pandoc#11423.  ## 0.1.1.3 -  * Use `-webkit-text-size-adjust` instead of unsetting-    inline-block (#202, Jacke Zimmerman).+* Use `-webkit-text-size-adjust` instead of unsetting+  inline-block (#202, Jacke Zimmerman).  ## 0.1.1.2 
skylighting-format-blaze-html.cabal view
@@ -1,5 +1,5 @@ name:                skylighting-format-blaze-html-version:             0.1.2+version:             0.1.2.1 synopsis:            HTML formatter for skylighting syntax highlighting library description:         This module allows tokens produced by skylighting-core                      to be rendered as HTML.
src/Skylighting/Format/HTML.hs view
@@ -107,10 +107,12 @@   H.span ! A.id lineNum          $ do            H.a ! A.href lineRef-               ! (if numberLines opts || htmlVersion == Html4-                     then mempty-                     else customAttribute (fromString "aria-hidden")-                           (fromString "true")) -- see jgm/pandoc#6352+               ! (case numberLines opts of+                    _ | htmlVersion == Html4 -> mempty+                    False -> customAttribute (fromString "aria-hidden")+                              (fromString "true") -- see jgm/pandoc#6352+                    True -> customAttribute (fromString "aria-label")+                              (fromString (show (lineNo lno))))  -- see #211                ! (if numberLines opts                      then mempty                      else customAttribute (fromString "tabindex")