skylighting 0.4.3.1 → 0.4.3.2
raw patch · 3 files changed
+9/−2 lines, 3 files
Files
- changelog.md +6/−0
- skylighting.cabal +1/−1
- src/Skylighting/Format/HTML.hs +2/−1
changelog.md view
@@ -1,5 +1,11 @@ # Revision history for skylighting +## 0.4.3.2 -- 2017-11-04++ * Fixed regression in `data-line-number` attributes in HTML+ output. We should not include the `lineIdPrefix` in+ front of this.+ ## 0.4.3.1 -- 2017-11-03 * Fixed typo in css (Artymort).
skylighting.cabal view
@@ -1,5 +1,5 @@ name: skylighting-version: 0.4.3.1+version: 0.4.3.2 synopsis: syntax highlighting library description: Skylighting is a syntax highlighting library with support for over one hundred languages. It derives
src/Skylighting/Format/HTML.hs view
@@ -93,7 +93,8 @@ lineNum = toValue prefixedLineNo lineRef = toValue ('#':prefixedLineNo) prefixedLineNo = Text.unpack (lineIdPrefix opts) <> show (lineNo lno)- dataAttrib = H.dataAttribute (fromString "line-number") lineNum+ dataAttrib = H.dataAttribute (fromString "line-number")+ (toValue (show (lineNo lno))) tokenToHtml :: FormatOptions -> Token -> Html tokenToHtml _ (NormalTok, txt) = toHtml txt