packages feed

mmark-ext 0.2.1.1 → 0.2.1.2

raw patch · 9 files changed

+21/−13 lines, 9 filesdep −semigroupsdep ~skylightingPVP ok

version bump matches the API change (PVP)

Dependencies removed: semigroups

Dependency ranges changed: skylighting

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+## MMark Ext 0.2.1.2++* Made the tests pass with `skylighting-0.7.6`.+ ## MMark Ext 0.2.1.1  * Made the tests pass with `skylighting-0.7.4`.
README.md view
@@ -14,10 +14,10 @@ Issues, bugs, and questions may be reported in [the GitHub issue tracker for this project](https://github.com/mmark-md/mmark-ext/issues). -Pull requests are also welcome and will be reviewed quickly.+Pull requests are also welcome.  ## License -Copyright © 2017–2018 Mark Karpov+Copyright © 2017–2019 Mark Karpov  Distributed under BSD 3 clause license.
Text/MMark/Extension/Comment.hs view
@@ -1,6 +1,6 @@ -- | -- Module      :  Text.MMark.Extension.Comment--- Copyright   :  © 2018 Mark Karpov+-- Copyright   :  © 2018–2019 Mark Karpov -- License     :  BSD 3 clause -- -- Maintainer  :  Mark Karpov <markkarpov92@gmail.com>
Text/MMark/Extension/Common.hs view
@@ -1,6 +1,6 @@ -- | -- Module      :  Text.MMark.Extension.Common--- Copyright   :  © 2017–2018 Mark Karpov+-- Copyright   :  © 2017–2019 Mark Karpov -- License     :  BSD 3 clause -- -- Maintainer  :  Mark Karpov <markkarpov92@gmail.com>@@ -25,13 +25,14 @@ -- > import qualified Lucid                       as L -- > import qualified Text.MMark                  as MMark -- > import qualified Text.MMark.Extension.Common as Ext+-- > import qualified Text.Megaparsec             as M -- > -- > main :: IO () -- > main = do -- >   let input = "input.md" -- >   txt <- T.readFile input -- >   case MMark.parse input txt of--- >     Left errs -> putStrLn (MMark.parseErrorsPretty txt errs)+-- >     Left bundle -> putStrLn (M.errorBundlePretty bundle) -- >     Right r -> -- >       let toc = MMark.runScanner r (Ext.tocScanner (> 1)) -- >       in TL.writeFile "output.html"
Text/MMark/Extension/FontAwesome.hs view
@@ -1,6 +1,6 @@ -- | -- Module      :  Text.MMark.Extension.FontAwesome--- Copyright   :  © 2017–2018 Mark Karpov+-- Copyright   :  © 2017–2019 Mark Karpov -- License     :  BSD 3 clause -- -- Maintainer  :  Mark Karpov <markkarpov92@gmail.com>
Text/MMark/Extension/Footnotes.hs view
@@ -1,6 +1,6 @@ -- | -- Module      :  Text.MMark.Extension.Footnotes--- Copyright   :  © 2018 Mark Karpov+-- Copyright   :  © 2018–2019 Mark Karpov -- License     :  BSD 3 clause -- -- Maintainer  :  Mark Karpov <markkarpov92@gmail.com>
Text/MMark/Extension/GhcSyntaxHighlighter.hs view
@@ -1,6 +1,6 @@ -- | -- Module      :  Text.MMark.Extension.GhcSyntaxHighlighter--- Copyright   :  © 2018 Mark Karpov+-- Copyright   :  © 2018–2019 Mark Karpov -- License     :  BSD 3 clause -- -- Maintainer  :  Mark Karpov <markkarpov92@gmail.com>
mmark-ext.cabal view
@@ -1,7 +1,7 @@ name:                 mmark-ext-version:              0.2.1.1+version:              0.2.1.2 cabal-version:        1.18-tested-with:          GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.2+tested-with:          GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.3 license:              BSD3 license-file:         LICENSE.md author:               Mark Karpov <markkarpov92@gmail.com>@@ -41,8 +41,6 @@                     , text             >= 0.2   && < 1.3   if impl(ghc >= 8.4)     build-depends:    ghc-syntax-highlighter >= 0.0.1 && < 0.1-  if !impl(ghc >= 8.0)-    build-depends:    semigroups       == 0.18.*   exposed-modules:    Text.MMark.Extension.Common                     , Text.MMark.Extension.Comment                     , Text.MMark.Extension.FontAwesome
tests/Text/MMark/Extension/SkylightingSpec.hs view
@@ -18,8 +18,13 @@     context "with info string results in a successful lookup" $       it "renders it correctly" $         "```haskell\nmain :: IO ()\nmain = return ()\n```\n" `to`-#if MIN_VERSION_skylighting(0,7,4)+#if MIN_VERSION_skylighting(0,7,6)+          -- version 0.7.6 and later+          "<div class=\"source-code\"><pre><code class=\"language-haskell\"><span class=\"ot\">main ::</span><span> </span><span class=\"dt\">IO</span><span> ()</span>\n<span>main </span><span class=\"ot\">=</span><span> </span><span class=\"fu\">return</span><span> ()</span>\n</code></pre></div>\n"+#elif MIN_VERSION_skylighting(0,7,4)+          -- versions 0.7.4 and 0.7.5           "<div class=\"source-code\"><pre><code class=\"language-haskell\"><span class=\"ot\">main ::</span><span> </span><span class=\"dt\">IO</span><span> ()</span>\n<span>main </span><span class=\"fu\">=</span><span> </span><span class=\"fu\">return</span><span> ()</span>\n</code></pre></div>\n" #else+          -- versions older than 0.7.4           "<div class=\"source-code\"><pre><code class=\"language-haskell\"><span class=\"ot\">main ::</span><span> </span><span class=\"dt\">IO</span><span> ()</span>\n<span>main </span><span class=\"fu\">=</span><span> return ()</span>\n</code></pre></div>\n" #endif