packages feed

pandoc-stylefrommeta-0.3.0.0: pandoc-stylefrommeta.cabal

name:                    pandoc-stylefrommeta
version:                 0.3.0.0
synopsis:                Pandoc filter to customize links, images and paragraphs
description:             Pandoc filter to customize links, images and paragraphs
        (with restrictions). Styles are read from the metadata of the document:
        they may reside inside the document or in a separate YAML file.
homepage:                http://github.com/lyokha/styleFromMeta
license:                 BSD3
license-file:            LICENSE
extra-source-files:      Changelog.md README.md
author:                  Alexey Radkov <alexey.radkov@gmail.com>
maintainer:              Alexey Radkov <alexey.radkov@gmail.com>
stability:               stable
copyright:               2016-2023 Alexey Radkov
category:                Text
build-type:              Simple
cabal-version:           1.20

source-repository head
  type:                  git
  location:              git@github.com:lyokha/styleFromMeta.git

flag Pandoc2
  description:           Use Pandoc 2.0 and newer
                         (requires text and bytestring)

flag PandocUseText
  description:           Use Pandoc migrated from String to Text
                         (requires pandoc >= 2.8 and pandoc-types >= 1.20)

executable styleFromMeta
  default-language:      Haskell2010
  build-depends:         base >= 4.8 && < 5
                       , pandoc >= 1.12
                       , pandoc-types >= 1.12
                       , containers >= 0.2

  if flag(Pandoc2)
    build-depends:       pandoc >= 2.0
                       , pandoc-types >= 1.17.2
                       , text
                       , bytestring

  if flag(PandocUseText)
    build-depends:       pandoc >= 2.8
                       , pandoc-types >= 1.20
  else
    build-depends:       extra

  main-is:               styleFromMeta.hs