packages feed

org-mode-lucid 1.5.0 → 1.6.0

raw patch · 3 files changed

+25/−9 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Org.Lucid: [bulma] :: OrgStyle -> Bool
- Data.Org.Lucid: OrgStyle :: Bool -> TOC -> Bool -> Highlighting -> SectionStyling -> Maybe Char -> OrgStyle
+ Data.Org.Lucid: OrgStyle :: Bool -> TOC -> Bool -> Bool -> Highlighting -> SectionStyling -> Maybe Char -> OrgStyle

Files

CHANGELOG.md view
@@ -1,5 +1,16 @@ # Changelog +## 1.6.0 (2021-04-05)++#### Added++- `OrgStyle` now contains the field `bulma :: Bool` for adding+  [Bulma](https://bulma.io/) classes to certain elements.++#### Changelog++- Images are now wrapped in a `<figure>` element as well.+ ## 1.5.0 (2020-09-04)  #### Added
lib/Data/Org/Lucid.hs view
@@ -2,7 +2,7 @@  -- | -- Module    : Data.Org.Lucid--- Copyright : (c) Colin Woodbury, 2020+-- Copyright : (c) Colin Woodbury, 2020 - 2021 -- License   : BSD3 -- Maintainer: Colin Woodbury <colin@fosskers.ca> --@@ -50,6 +50,8 @@     -- configurable.   , bootstrap       :: Bool     -- ^ Whether to add Twitter Bootstrap classes to certain elements.+  , bulma           :: Bool+    -- ^ Whether to add Bulma classes to certain elements.   , highlighting    :: Highlighting     -- ^ A function to give @\<code\>@ blocks syntax highlighting.   , sectionStyling  :: SectionStyling@@ -82,6 +84,7 @@   { includeTitle = True   , tableOfContents = TOC 3   , bootstrap = False+  , bulma = False   , highlighting = codeHTML   , sectionStyling = \_ a b -> a >> b   , separator = Just ' ' }@@ -149,12 +152,14 @@  blockHTML :: OrgStyle -> Block -> Html () blockHTML os b = case b of-  Quote t      -> blockquote_ . p_ $ toHtml t-  Example t    -> pre_ [class_ "example"] $ toHtml t-  Code l t     -> highlighting os l t-  List is      -> listItemsHTML os is-  Table rw     -> tableHTML os rw-  Paragraph ws -> p_ $ paragraphHTML os ws+  Quote t                  -> blockquote_ . p_ $ toHtml t+  Example t | bootstrap os -> pre_ [class_ "example"] $ toHtml t+            | bulma os     -> pre_ [class_ "box"] $ toHtml t+            | otherwise    -> pre_ $ toHtml t+  Code l t                 -> highlighting os l t+  List is                  -> listItemsHTML os is+  Table rw                 -> tableHTML os rw+  Paragraph ws             -> p_ $ paragraphHTML os ws  -- | Mimicks the functionality of Emacs' native HTML export. codeHTML :: Highlighting@@ -229,7 +234,7 @@   Verbatim t      -> toHtml t   Strike t        -> span_ [style_ "text-decoration: line-through;"] $ toHtml t   Link (URL u) mt -> a_ [href_ u] $ maybe "" toHtml mt-  Image (URL u)   -> img_ [src_ u]+  Image (URL u)   -> figure_ $ img_ [src_ u]   Tags ts         -> toHtml $ ":" <> T.intercalate ":" (NEL.toList ts) <> ":"   Punct c         -> toHtml $ T.singleton c   Plain t         -> toHtml t
org-mode-lucid.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.2 name:               org-mode-lucid-version:            1.5.0+version:            1.6.0 synopsis:           Lucid integration for org-mode. description:        Lucid integration for org-mode. category:           Web