Compare commits

..

No commits in common. 'epel9' and 'c8' have entirely different histories.
epel9 ... c8

58
.gitignore vendored

@ -1,57 +1 @@
/pandoc-1.6.0.1.tar.gz
/pandoc-1.8.1.1.tar.gz
/pandoc-1.8.1.2.tar.gz
/pandoc-1.8.2.1.tar.gz
/pandoc-1.9.1.1.tar.gz
/pandoc-1.9.1.2.tar.gz
/pandoc-1.9.2.tar.gz
/pandoc-1.9.4.1.tar.gz
/pandoc-1.9.4.2.tar.gz
/pandoc-1.9.4.5.tar.gz
/pandoc-1.10.1.tar.gz
/pandoc-1.11.1.tar.gz
/pandoc-1.12.3.1.tar.gz
/pandoc-1.12.3.3.tar.gz
/pandoc-1.13.2.tar.gz
/pandoc-1.16.0.2.tar.gz
/pandoc-1.17.1.tar.gz
/pandoc-1.17.0.3.tar.gz
/pandoc-1.19.1.tar.gz
/doctemplates-0.1.0.2.tar.gz
/pandoc-1.19.2.4.tar.gz
/pandoc-2.0.6.tar.gz
/cmark-gfm-0.1.3.tar.gz
/hslua-module-text-0.1.2.1.tar.gz
/pandoc-2.1.2.tar.gz
/pandoc-2.2.1.tar.gz
/pandoc-2.5.tar.gz
/unicode-transforms-0.3.6.tar.gz
/HsYAML-0.1.2.0.tar.gz
/bitarray-0.0.1.1.tar.gz
/hslua-module-system-0.2.1.tar.gz
/ipynb-0.1.tar.gz
/pandoc-2.7.3.tar.gz
/emojis-0.1.tar.gz
/ipynb-0.1.0.1.tar.gz
/jira-wiki-markup-1.0.0.tar.gz
/pandoc-2.9.1.1.tar.gz
/pandoc-2.9.2.1.tar.gz
/base-noprelude-4.13.0.0.tar.gz
/jira-wiki-markup-1.1.4.tar.gz
/pandoc-2.11.4.tar.gz
/hslua-module-system-0.2.2.1.tar.gz
/jira-wiki-markup-1.3.3.tar.gz
/citeproc-0.3.0.7.tar.gz
/commonmark-0.1.1.4.tar.gz
/commonmark-extensions-0.2.0.4.tar.gz
/commonmark-pandoc-0.2.0.1.tar.gz
/jira-wiki-markup-1.3.4.tar.gz
/citeproc-0.3.0.9.tar.gz
/pandoc-2.14.0.3.tar.gz
/jira-wiki-markup-1.4.0.tar.gz
/citeproc-0.4.0.1.tar.gz
/commonmark-0.2.1.tar.gz
/commonmark-extensions-0.2.1.2.tar.gz
/commonmark-pandoc-0.2.1.1.tar.gz
/hslua-module-path-0.1.0.1.tar.gz
/unicode-collation-0.1.3.tar.gz
SOURCES/pandoc-2.0.6.tar.gz

@ -0,0 +1 @@
441c604691a13c39ce72da7e01df2477702bce5c SOURCES/pandoc-2.0.6.tar.gz

@ -1,92 +0,0 @@
commit 5e381e3878b5da87ee7542f7e51c3c1a7fd84b89
Author: John MacFarlane <jgm@berkeley.edu>
Date: Tue Jun 20 13:50:13 2023 -0700
Fix a security vulnerability in MediaBag and T.P.Class.IO.writeMedia.
This vulnerability, discovered by Entroy C, allows users to write
arbitrary files to any location by feeding pandoc a specially crafted
URL in an image element. The vulnerability is serious for anyone
using pandoc to process untrusted input. The vulnerability does
not affect pandoc when run with the `--sandbox` flag.
--- pandoc-2.14.0.3/src/Text/Pandoc/Class/IO.hs.orig 2021-06-11 07:26:17.000000000 +0800
+++ pandoc-2.14.0.3/src/Text/Pandoc/Class/IO.hs 2024-03-22 16:39:03.445837785 +0800
@@ -48,7 +48,7 @@
import Network.HTTP.Client.TLS (mkManagerSettings)
import Network.HTTP.Types.Header ( hContentType )
import Network.Socket (withSocketsDo)
-import Network.URI (unEscapeString)
+import Network.URI (URI(..), parseURI)
import System.Directory (createDirectoryIfMissing)
import System.Environment (getEnv)
import System.FilePath ((</>), takeDirectory, normalise)
@@ -119,11 +119,11 @@
openURL :: (PandocMonad m, MonadIO m) => Text -> m (B.ByteString, Maybe MimeType)
openURL u
- | Just u'' <- T.stripPrefix "data:" u = do
- let mime = T.takeWhile (/=',') u''
- let contents = UTF8.fromString $
- unEscapeString $ T.unpack $ T.drop 1 $ T.dropWhile (/=',') u''
- return (decodeLenient contents, Just mime)
+ | Just (URI{ uriScheme = "data:",
+ uriPath = upath }) <- parseURI (T.unpack u) = do
+ let (mime, rest) = break (== '.') upath
+ let contents = UTF8.fromString $ drop 1 rest
+ return (decodeLenient contents, Just (T.pack mime))
| otherwise = do
let toReqHeader (n, v) = (CI.mk (UTF8.fromText n), UTF8.fromText v)
customHeaders <- map toReqHeader <$> getsCommonState stRequestHeaders
--- pandoc-2.14.0.3/src/Text/Pandoc/MediaBag.hs.orig 2021-06-19 04:15:43.000000000 +0800
+++ pandoc-2.14.0.3/src/Text/Pandoc/MediaBag.hs 2024-03-22 16:33:37.600005389 +0800
@@ -33,7 +33,7 @@
import Data.Text (Text)
import qualified Data.Text as T
import Data.Digest.Pure.SHA (sha1, showDigest)
-import Network.URI (URI (..), parseURI)
+import Network.URI (URI (..), parseURI, isURI, unEscapeString)
data MediaItem =
MediaItem
@@ -52,9 +52,12 @@
instance Show MediaBag where
show bag = "MediaBag " ++ show (mediaDirectory bag)
--- | We represent paths with /, in normalized form.
+-- | We represent paths with /, in normalized form. Percent-encoding
+-- is resolved.
canonicalize :: FilePath -> Text
-canonicalize = T.replace "\\" "/" . T.pack . normalise
+canonicalize fp
+ | isURI fp = T.pack fp
+ | otherwise = T.replace "\\" "/" . T.pack . normalise . unEscapeString $ fp
-- | Delete a media item from a 'MediaBag', or do nothing if no item corresponds
-- to the given path.
@@ -77,17 +80,18 @@
, mediaContents = contents
, mediaMimeType = mt }
fp' = canonicalize fp
+ fp'' = T.unpack fp'
uri = parseURI fp
- newpath = if isRelative fp
+ newpath = if isRelative fp''
&& isNothing uri
- && ".." `notElem` splitPath fp
- then T.unpack fp'
+ && not (".." `T.isInfixOf` fp')
+ then fp''
else showDigest (sha1 contents) <> "." <> ext
- fallback = case takeExtension fp of
- ".gz" -> getMimeTypeDef $ dropExtension fp
- _ -> getMimeTypeDef fp
+ fallback = case takeExtension fp'' of
+ ".gz" -> getMimeTypeDef $ dropExtension fp''
+ _ -> getMimeTypeDef fp''
mt = fromMaybe fallback mbMime
- path = maybe fp uriPath uri
+ path = maybe fp'' (unEscapeString . uriPath) uri
ext = case takeExtension path of
'.':e -> e
_ -> maybe "" T.unpack $ extensionFromMimeType mt

@ -1,150 +1,102 @@
# generated by cabal-rpm-2.0.10 --subpackage
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
# generated by cabal-rpm-0.12.1
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name pandoc
%global pkgver %{pkg_name}-%{version}
%global hsluamodulesystem hslua-module-system-0.2.2.1
%global ipynb ipynb-0.1.0.1
%global emojis emojis-0.1
%global jirawikimarkup jira-wiki-markup-1.4.0
%global citeproc citeproc-0.4.0.1
%global commonmark commonmark-0.2.1
%global commonmarkextensions commonmark-extensions-0.2.1.2
%global commonmarkpandoc commonmark-pandoc-0.2.1.1
%global hsluamodulepath hslua-module-path-0.1.0.1
%global unicodecollation unicode-collation-0.1.3
%global subpkgs %{hsluamodulesystem} %{ipynb} %{emojis} %{jirawikimarkup} %{unicodecollation} %{citeproc} %{commonmark} %{commonmarkextensions} %{commonmarkpandoc} %{hsluamodulepath}
# link statically to Haskell libs for module portability
%global ghc_without_dynamic 1
# testsuite missing deps: tasty-golden tasty-lua
%bcond_with tests
Name: %{pkg_name}
Version: 2.14.0.3
# can only be reset when all subpkgs bumped
Release: 17%{?dist}
Version: 2.0.6
Release: 6%{?dist}
Summary: Conversion between markup formats
License: GPLv2+
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{hsluamodulesystem}/%{hsluamodulesystem}.tar.gz
Source2: https://hackage.haskell.org/package/%{ipynb}/%{ipynb}.tar.gz
Source3: https://hackage.haskell.org/package/%{emojis}/%{emojis}.tar.gz
Source4: https://hackage.haskell.org/package/%{jirawikimarkup}/%{jirawikimarkup}.tar.gz
Source5: https://hackage.haskell.org/package/%{citeproc}/%{citeproc}.tar.gz
Source6: https://hackage.haskell.org/package/%{commonmark}/%{commonmark}.tar.gz
Source7: https://hackage.haskell.org/package/%{commonmarkextensions}/%{commonmarkextensions}.tar.gz
Source8: https://hackage.haskell.org/package/%{commonmarkpandoc}/%{commonmarkpandoc}.tar.gz
Source9: https://hackage.haskell.org/package/%{hsluamodulepath}/%{hsluamodulepath}.tar.gz
Source10: https://hackage.haskell.org/package/%{unicodecollation}/%{unicodecollation}.tar.gz
# End cabal-rpm sources
# CVE-2023-35936
# https://github.com/jgm/pandoc/commit/5e381e3878b5da87ee7542f7e51c3c1a7fd84b89
Patch1: 5e381e3878b5da87ee7542f7e51c3c1a7fd84b89-backport.patch
# CVE-2023-38745
# https://github.com/jgm/pandoc/commit/eddedbfc14916aa06fc01ff04b38aeb30ae2e625
Patch2: eddedbfc14916aa06fc01ff04b38aeb30ae2e625-backport.patch
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros-extra
BuildRequires: ghc-Glob-prof
BuildRequires: ghc-HTTP-prof
BuildRequires: ghc-HsYAML-prof
BuildRequires: ghc-JuicyPixels-prof
BuildRequires: ghc-SHA-prof
BuildRequires: ghc-aeson-prof
BuildRequires: ghc-aeson-pretty-prof
BuildRequires: ghc-array-prof
BuildRequires: ghc-attoparsec-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-base64-bytestring-prof
BuildRequires: ghc-binary-prof
BuildRequires: ghc-blaze-html-prof
BuildRequires: ghc-blaze-markup-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-case-insensitive-prof
#BuildRequires: ghc-citeproc-prof
#BuildRequires: ghc-commonmark-prof
#BuildRequires: ghc-commonmark-extensions-prof
#BuildRequires: ghc-commonmark-pandoc-prof
BuildRequires: ghc-connection-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-data-default-prof
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-directory-prof
BuildRequires: ghc-doclayout-prof
BuildRequires: ghc-doctemplates-prof
#BuildRequires: ghc-emojis-prof
BuildRequires: ghc-exceptions-prof
BuildRequires: ghc-file-embed-prof
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-haddock-library-prof
BuildRequires: ghc-hslua-prof
#BuildRequires: ghc-hslua-module-path-prof
#BuildRequires: ghc-hslua-module-system-prof
BuildRequires: ghc-hslua-module-text-prof
BuildRequires: ghc-http-client-prof
BuildRequires: ghc-http-client-tls-prof
BuildRequires: ghc-http-types-prof
#BuildRequires: ghc-ipynb-prof
#BuildRequires: ghc-jira-wiki-markup-prof
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-network-prof
BuildRequires: ghc-network-uri-prof
BuildRequires: ghc-pandoc-types-prof
BuildRequires: ghc-parsec-prof
BuildRequires: ghc-process-prof
BuildRequires: ghc-random-prof
BuildRequires: ghc-safe-prof
BuildRequires: ghc-scientific-prof
BuildRequires: ghc-skylighting-prof
BuildRequires: ghc-skylighting-core-prof
BuildRequires: ghc-split-prof
BuildRequires: ghc-syb-prof
BuildRequires: ghc-tagsoup-prof
BuildRequires: ghc-temporary-prof
BuildRequires: ghc-texmath-prof
BuildRequires: ghc-text-prof
BuildRequires: ghc-text-conversions-prof
BuildRequires: ghc-time-prof
#BuildRequires: ghc-unicode-collation-prof
BuildRequires: ghc-unicode-transforms-prof
BuildRequires: ghc-unix-prof
BuildRequires: ghc-unordered-containers-prof
BuildRequires: ghc-xml-prof
BuildRequires: ghc-xml-conduit-prof
BuildRequires: ghc-zip-archive-prof
BuildRequires: ghc-zlib-prof
Requires: %{name}-common = %{version}-%{release}
# for missing dep 'citeproc':
BuildRequires: ghc-transformers-prof
BuildRequires: ghc-uniplate-prof
BuildRequires: ghc-vector-prof
# for missing dep 'commonmark':
BuildRequires: ghc-transformers-prof
# for missing dep 'commonmark-extensions':
BuildRequires: ghc-transformers-prof
# for missing dep 'unicode-collation':
BuildRequires: ghc-template-haskell-prof
BuildRequires: ghc-th-lift-instances-prof
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: chrpath
BuildRequires: ghc-Glob-devel
BuildRequires: ghc-HTTP-devel
BuildRequires: ghc-JuicyPixels-devel
BuildRequires: ghc-SHA-devel
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-aeson-pretty-devel
BuildRequires: ghc-base64-bytestring-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-blaze-html-devel
BuildRequires: ghc-blaze-markup-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-cmark-gfm-devel >= 0.2.3
BuildRequires: ghc-containers-devel
BuildRequires: ghc-data-default-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-doctemplates-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-haddock-library-devel
BuildRequires: ghc-hslua-devel
BuildRequires: ghc-hslua-module-text-devel
BuildRequires: ghc-http-client-devel
BuildRequires: ghc-http-client-tls-devel
BuildRequires: ghc-http-types-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-pandoc-types-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-safe-devel
BuildRequires: ghc-scientific-devel
BuildRequires: ghc-skylighting-devel
BuildRequires: ghc-split-devel
BuildRequires: ghc-syb-devel
BuildRequires: ghc-tagsoup-devel
BuildRequires: ghc-temporary-devel
BuildRequires: ghc-texmath-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-unix-devel
BuildRequires: ghc-unordered-containers-devel
BuildRequires: ghc-vector-devel
BuildRequires: ghc-xml-devel
BuildRequires: ghc-yaml-devel
BuildRequires: ghc-zip-archive-devel
BuildRequires: ghc-zlib-devel
%if %{with tests}
BuildRequires: ghc-Diff-devel
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-executable-path-devel
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-golden-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
%endif
# End cabal-rpm deps
# added for F26
Obsoletes: pandoc-static < %{version}-%{release}
Requires: %{name}-common = %{version}-%{release}
%description
Pandoc is a Haskell library for converting from one markup format to another,
and a command-line tool that uses this library. It can read several dialects of
Markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, JATS,
MediaWiki markup, DokuWiki markup, TWiki markup, TikiWiki markup, Jira markup,
Creole 1.0, Haddock markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags, ipynb
(Jupyter notebooks), Vimwiki, Word Docx, ODT, EPUB, FictionBook2, roff man,
Textile, BibTeX, BibLaTeX, CSL JSON, , and CSV, and it can write Markdown,
reStructuredText, XHTML, HTML 5, LaTeX, ConTeXt, DocBook, JATS, OPML, TEI,
OpenDocument, ODT, Word docx, PowerPoint pptx, RTF, MediaWiki, DokuWiki, XWiki,
ZimWiki, Textile, Jira, roff man, roff ms, plain text, Emacs Org-Mode,
AsciiDoc, Haddock markup, EPUB (v2 and v3), ipynb, FictionBook2, InDesign ICML,
Muse, CSL JSON, LaTeX beamer slides, and several kinds of HTML/JavaScript slide
shows (S5, Slidy, Slideous, DZSlides, reveal.js).
MediaWiki markup, TWiki markup, TikiWiki markup, Creole 1.0, Haddock markup,
OPML, Emacs Org-Mode, Emacs Muse, txt2tags, Vimwiki, Word Docx, ODT, and
Textile, and it can write Markdown, reStructuredText, XHTML, HTML 5, LaTeX,
ConTeXt, DocBook, JATS, OPML, TEI, OpenDocument, ODT, Word docx, RTF,
MediaWiki, DokuWiki, ZimWiki, Textile, groff man, groff ms, plain text, Emacs
Org-Mode, AsciiDoc, Haddock markup, EPUB (v2 and v3), FictionBook2, InDesign
ICML, Muse, LaTeX beamer slides, PowerPoint, and several kinds of
HTML/JavaScript slide shows (S5, Slidy, Slideous, DZSlides, reveal.js).
In contrast to most existing tools for converting Markdown to HTML, pandoc has
a modular design: it consists of a set of readers, which parse text in a given
@ -152,18 +104,15 @@ format and produce a native representation of the document, and a set of
writers, which convert this native representation into a target format.
Thus, adding an input or output format requires only adding a reader or writer.
For pdf output please also install pandoc-pdf or weasyprint.
For pdf output please also install pandoc-pdf.
%package common
Summary: %{name} common files
# templates are dual: GPLv2+ or BSD
# dzslides js and css: DWTFYWTPL
License: GPLv2+ and BSD
Summary: Pandoc data files
BuildArch: noarch
%description common
This package provides the %{name} common data files.
This package contains the common data files used by pandoc.
%package -n ghc-%{name}
@ -177,9 +126,11 @@ This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files
Provides: ghc-%{name}-static = %{version}-%{release}
Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release}
Provides: ghc-%{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%endif
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
@ -202,73 +153,19 @@ To use --latex-engine=xelatex or lualatex, install texlive-collection-xetex
or texlive-collection-luatex respectively.
%if %{with haddock}
%package -n ghc-%{name}-doc
Summary: Haskell %{name} library documentation
BuildArch: noarch
Requires: ghc-filesystem
%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.
%endif
%if %{with ghc_prof}
%package -n ghc-%{name}-prof
Summary: Haskell %{name} profiling library
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
Supplements: (ghc-%{name}-devel and ghc-prof)
%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.
%endif
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage %{hsluamodulesystem}
%ghc_lib_subpackage %{ipynb}
%ghc_lib_subpackage %{emojis}
%ghc_lib_subpackage %{jirawikimarkup}
%ghc_lib_subpackage %{citeproc}
%ghc_lib_subpackage %{commonmark}
%ghc_lib_subpackage %{commonmarkextensions}
%ghc_lib_subpackage %{commonmarkpandoc}
%ghc_lib_subpackage %{hsluamodulepath}
%ghc_lib_subpackage %{unicodecollation}
%endif
%global version %{main_version}
%prep
# Begin cabal-rpm setup:
%setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10
# End cabal-rpm setup
%patch -P1 -p1 -b .orig
%patch -P2 -p1 -b .orig
%setup -q
cabal-tweak-dep-ver cmark-gfm '< 0.2' '< 0.3'
%build
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ifarch armv7hl
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965121
# [101 of 166] Compiling Text.Pandoc.Writers.LaTeX
# ghc: out of memory (requested 1048576 bytes)
%define cabal_configure_options --ghc-options="-O0"
%endif
%ghc_lib_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
mv %{buildroot}%{_ghcdocdir}{,-common}
# End cabal-rpm install
%ghc_fix_rpath %{pkgver}
mv %{buildroot}%{_ghclicensedir}/{,ghc-}%{name}
rm %{buildroot}%{_datadir}/%{pkgver}/COPYRIGHT
@ -276,137 +173,52 @@ ln -s pandoc %{buildroot}%{_bindir}/hsmarkdown
install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1
echo %{_bindir}/jira-wiki-markup >> %{jirawikimarkup}/ghc-jira-wiki-markup.files
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
touch %{buildroot}%{_datadir}/bash-completion/completions/%{name}
%check
%cabal_test
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%post
%{_bindir}/%{name} --bash-completion > %{_datadir}/bash-completion/completions/%{name}
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%files
# Begin cabal-rpm files:
%{_bindir}/%{name}
# End cabal-rpm files
%{_bindir}/hsmarkdown
%{_mandir}/man1/pandoc.1*
%ghost %{_datadir}/bash-completion/completions/%{name}
%license COPYING.md COPYRIGHT
%doc BUGS README* changelog
%attr(755,root,root) %{_bindir}/%{name}
%attr(-,root,root) %{_bindir}/hsmarkdown
%attr(644,root,root) %{_mandir}/man1/pandoc.1*
%files common
# Begin cabal-rpm files:
%license COPYING.md
%doc AUTHORS.md BUGS CONTRIBUTING.md README.md changelog.md
%{_datadir}/%{pkgver}
# End cabal-rpm files
%files pdf
%files -n ghc-%{name} -f ghc-%{name}.files
%license COPYING.md COPYRIGHT
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%license COPYING.md
%endif
%if %{with ghc_prof}
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
%endif
%changelog
* Fri Mar 22 2024 Jens Petersen <petersen@redhat.com> - 2.14.0.3-17
- backport fixes for CVE-2023-35936 and CVE-2023-38745
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.0.3-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Sat Jan 08 2022 Miro Hrončok <mhroncok@redhat.com> - 2.14.0.3-15
- Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34
* Tue Aug 10 2021 Orion Poplawski <orion@nwra.com> - 2.14.0.3-14
- Fix path in %%post
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 2.14.0.3-13
- update to 2.14.0.3
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 2.11.4-12
- update to 2.11.4
- drop base-noprelude
* Thu Aug 5 2021 Jens Petersen <petersen@redhat.com> - 2.9.2.1-11
- create bash-completion file in post-install
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Sep 19 21:12:58 +08 2020 Jens Petersen <petersen@redhat.com> - 2.9.2.1-8
- rebuild for cmark-gfm-0.2.2: fixes exponential parse (#1854329)
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2.1-7
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Apr 14 2022 Jens Petersen <petersen@redhat.com> - 2.0.6-6
- rebuild with ghc-cmark-gfm-0.2.3 for CVE-2022-24724 (#2074997)
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
* Fri Jun 19 2020 Jens Petersen <petersen@redhat.com> - 2.9.2.1-5
- https://hackage.haskell.org/package/pandoc-2.9.2.1/changelog
- subpackage base-noprelude
- bitarray and unicode-transforms were packaged
* Mon Dec 14 2020 Jens Petersen <petersen@redhat.com> - 2.0.6-5
- rebuild with ghc-cmark-gfm-0.2.2 (#1865911)
* Wed Jun 10 2020 Jens Petersen <petersen@redhat.com> - 2.9.1.1-4
- https://hackage.haskell.org/package/pandoc-2.9.1.1/changelog
- new deps: doclayout, emojis, jira-wiki-markup, text-conversions
* Sun Feb 23 2020 Jens Petersen <petersen@redhat.com> - 2.7.3-3
- https://pandoc.org/releases.html#pandoc-2.7.3-2019-06-11
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Jens Petersen <petersen@redhat.com> - 2.5-1
- update to 2.5
- subpackage HsYAML, unicode-transforms, bitarray
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 2.2.1-1
- update to 2.2.1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Oct 24 2018 Jens Petersen <petersen@redhat.com> - 2.1.2-2
- rebuild for static executable
- resurrect common subpackage
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 2.1.2-1
- update to 2.1.2
* Tue Jul 24 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-7
- Enable annotated build again
* Mon Jul 23 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-6
- Rebuilt for #1607054
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 1 2018 Jens Petersen <petersen@redhat.com> - 2.0.6-4
- rebuild
* Wed Dec 12 2018 Jens Petersen <petersen@redhat.com> - 2.0.6-4
- link executable statically to its Haskell deps for portability (#1657278)
- add common subpackage for shared data files
* Thu May 31 2018 Jens Petersen <petersen@redhat.com> - 2.0.6-3
- no longer subpackage cmark-gfm and hslua-module-text

@ -1,49 +0,0 @@
commit eddedbfc14916aa06fc01ff04b38aeb30ae2e625
Author: John MacFarlane <jgm@berkeley.edu>
Date: Thu Jul 20 09:26:38 2023 -0700
Fix new variant of the vulnerability in CVE-2023-35936.
Guilhem Moulin noticed that the fix to CVE-2023-35936 was incomplete.
An attacker could get around it by double-encoding the malicious
extension to create or override arbitrary files.
$ echo '![](data://image/png;base64,cHJpbnQgImhlbGxvIgo=;.lua+%252f%252e%252e%252f%252e%252e%252fb%252elua)' >b.md
$ .cabal/bin/pandoc b.md --extract-media=bar
<p><img
src="bar/2a0eaa89f43fada3e6c577beea4f2f8f53ab6a1d.lua+%2f%2e%2e%2f%2e%2e%2fb%2elua" /></p>
$ cat b.lua
print "hello"
$ find bar
bar/
bar/2a0eaa89f43fada3e6c577beea4f2f8f53ab6a1d.lua+
This commit adds a test case for this more complex attack and fixes
the vulnerability. (The fix is quite simple: if the URL-unescaped
filename or extension contains a '%', we just use the sha1 hash of the
contents as the canonical name, just as we do if the filename contains
'..'.)
--- pandoc-2.14.0.3/src/Text/Pandoc/MediaBag.hs.orig 2024-03-22 16:40:07.874200094 +0800
+++ pandoc-2.14.0.3/src/Text/Pandoc/MediaBag.hs 2024-03-22 16:42:13.289905373 +0800
@@ -85,16 +85,17 @@
newpath = if isRelative fp''
&& isNothing uri
&& not (".." `T.isInfixOf` fp')
+ && '%' `notElem` fp''
then fp''
- else showDigest (sha1 contents) <> "." <> ext
+ else showDigest (sha1 contents) <> ext
fallback = case takeExtension fp'' of
".gz" -> getMimeTypeDef $ dropExtension fp''
_ -> getMimeTypeDef fp''
mt = fromMaybe fallback mbMime
path = maybe fp'' (unEscapeString . uriPath) uri
ext = case takeExtension path of
- '.':e -> e
- _ -> maybe "" T.unpack $ extensionFromMimeType mt
+ '.':e | '%' `notElem` e -> '.':e
+ _ -> maybe "" (\x -> '.':T.unpack x) $ extensionFromMimeType mt
-- | Lookup a media item in a 'MediaBag', returning mime type and contents.

@ -1,742 +0,0 @@
name: pandoc
version: 2.5
x-revision: 2
cabal-version: 2.0
build-type: Custom
license: GPL-2
license-file: COPYING.md
copyright: (c) 2006-2018 John MacFarlane
author: John MacFarlane <jgm@berkeley.edu>
maintainer: John MacFarlane <jgm@berkeley.edu>
bug-reports: https://github.com/jgm/pandoc/issues
stability: alpha
homepage: https://pandoc.org
category: Text
tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.3,
GHC == 8.6.1
synopsis: Conversion between markup formats
description: Pandoc is a Haskell library for converting from one markup
format to another, and a command-line tool that uses
this library. It can read several dialects of Markdown and
(subsets of) HTML, reStructuredText, LaTeX, DocBook, JATS,
MediaWiki markup, TWiki markup, TikiWiki markup, Creole 1.0,
Haddock markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags,
Vimwiki, Word Docx, ODT, EPUB, FictionBook2, roff man,
and Textile, and it can write Markdown, reStructuredText,
XHTML, HTML 5, LaTeX, ConTeXt, DocBook, JATS, OPML, TEI,
OpenDocument, ODT, Word docx, PowerPoint pptx,
RTF, MediaWiki, DokuWiki, ZimWiki, Textile,
roff man, roff ms, plain text, Emacs Org-Mode,
AsciiDoc, Haddock markup, EPUB (v2 and v3),
FictionBook2, InDesign ICML, Muse, LaTeX beamer slides,
and several kinds of HTML/JavaScript slide shows
(S5, Slidy, Slideous, DZSlides, reveal.js).
.
In contrast to most existing tools for converting Markdown
to HTML, pandoc has a modular design: it consists of a set of
readers, which parse text in a given format and produce a
native representation of the document, and a set of writers,
which convert this native representation into a target
format. Thus, adding an input or output format requires
only adding a reader or writer.
data-files:
-- templates
data/templates/default.html4
data/templates/default.html5
data/templates/default.docbook4
data/templates/default.docbook5
data/templates/default.jats
data/templates/default.tei
data/templates/default.opendocument
data/templates/default.icml
data/templates/default.opml
data/templates/default.latex
data/templates/default.context
data/templates/default.texinfo
data/templates/default.man
data/templates/default.ms
data/templates/default.markdown
data/templates/default.muse
data/templates/default.commonmark
data/templates/default.rst
data/templates/default.plain
data/templates/default.mediawiki
data/templates/default.dokuwiki
data/templates/default.zimwiki
data/templates/default.rtf
data/templates/default.s5
data/templates/default.slidy
data/templates/default.slideous
data/templates/default.revealjs
data/templates/default.dzslides
data/templates/default.asciidoc
data/templates/default.haddock
data/templates/default.textile
data/templates/default.org
data/templates/default.epub2
data/templates/default.epub3
-- translations
data/translations/*.yaml
-- source files for reference.docx
data/docx/[Content_Types].xml
data/docx/_rels/.rels
data/docx/docProps/app.xml
data/docx/docProps/core.xml
data/docx/docProps/custom.xml
data/docx/word/document.xml
data/docx/word/fontTable.xml
data/docx/word/comments.xml
data/docx/word/footnotes.xml
data/docx/word/numbering.xml
data/docx/word/settings.xml
data/docx/word/webSettings.xml
data/docx/word/styles.xml
data/docx/word/_rels/document.xml.rels
data/docx/word/_rels/footnotes.xml.rels
data/docx/word/theme/theme1.xml
-- source files for reference.odt
data/odt/mimetype
data/odt/manifest.rdf
data/odt/styles.xml
data/odt/content.xml
data/odt/meta.xml
data/odt/settings.xml
data/odt/Configurations2/accelerator/current.xml
data/odt/Thumbnails/thumbnail.png
data/odt/META-INF/manifest.xml
-- source files for reference.pptx
data/pptx/_rels/.rels
data/pptx/docProps/app.xml
data/pptx/docProps/core.xml
data/pptx/ppt/slideLayouts/_rels/slideLayout1.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout2.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout3.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout4.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout5.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout6.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout7.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout8.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout9.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout10.xml.rels
data/pptx/ppt/slideLayouts/_rels/slideLayout11.xml.rels
data/pptx/ppt/slideLayouts/slideLayout1.xml
data/pptx/ppt/slideLayouts/slideLayout2.xml
data/pptx/ppt/slideLayouts/slideLayout3.xml
data/pptx/ppt/slideLayouts/slideLayout4.xml
data/pptx/ppt/slideLayouts/slideLayout5.xml
data/pptx/ppt/slideLayouts/slideLayout6.xml
data/pptx/ppt/slideLayouts/slideLayout7.xml
data/pptx/ppt/slideLayouts/slideLayout8.xml
data/pptx/ppt/slideLayouts/slideLayout9.xml
data/pptx/ppt/slideLayouts/slideLayout10.xml
data/pptx/ppt/slideLayouts/slideLayout11.xml
data/pptx/ppt/_rels/presentation.xml.rels
data/pptx/ppt/theme/theme1.xml
data/pptx/ppt/presProps.xml
data/pptx/ppt/slides/_rels/slide1.xml.rels
data/pptx/ppt/slides/_rels/slide2.xml.rels
data/pptx/ppt/slides/slide2.xml
data/pptx/ppt/slides/slide1.xml
data/pptx/ppt/viewProps.xml
data/pptx/ppt/tableStyles.xml
data/pptx/ppt/slideMasters/_rels/slideMaster1.xml.rels
data/pptx/ppt/slideMasters/slideMaster1.xml
data/pptx/ppt/presentation.xml
data/pptx/ppt/notesMasters/_rels/notesMaster1.xml.rels
data/pptx/ppt/notesMasters/notesMaster1.xml
data/pptx/ppt/notesSlides/_rels/notesSlide1.xml.rels
data/pptx/ppt/notesSlides/notesSlide1.xml
data/pptx/ppt/notesSlides/_rels/notesSlide2.xml.rels
data/pptx/ppt/notesSlides/notesSlide2.xml
data/pptx/ppt/theme/theme2.xml
data/pptx/[Content_Types].xml
-- stylesheet for EPUB writer
data/epub.css
-- data for dzslides writer
data/dzslides/template.html
-- default abbreviations file
data/abbreviations
-- sample lua custom writer
data/sample.lua
-- lua init script
data/init.lua
-- pandoc lua module
data/pandoc.lua
-- lua List module
data/pandoc.List.lua
-- bash completion template
data/bash_completion.tpl
-- jats csl
data/jats.csl
-- documentation
MANUAL.txt, COPYRIGHT
extra-source-files:
-- documentation
INSTALL.md, AUTHORS.md, README.md,
CONTRIBUTING.md, BUGS, changelog,
man/pandoc.1
-- stack build plan
stack.yaml
-- files needed to build man page
man/manfilter.lua
man/pandoc.1.template
-- trypandoc
trypandoc/Makefile
trypandoc/index.html
-- tests
test/bodybg.gif
test/*.native
test/command/*.md
test/command/3533-rst-csv-tables.csv
test/command/3880.txt
test/command/abbrevs
test/command/SVG_logo-without-xml-declaration.svg
test/command/SVG_logo.svg
test/command/corrupt.svg
test/command/inkscape-cube.svg
test/command/lua-pandoc-state.lua
test/command/sub-file-chapter-1.tex
test/command/sub-file-chapter-2.tex
test/command/bar.tex
test/command/yaml-metadata.yaml
test/command/3510-subdoc.org
test/command/3510-export.latex
test/command/3510-src.hs
test/command/3971b.tex
test/docbook-reader.docbook
test/docbook-xref.docbook
test/html-reader.html
test/opml-reader.opml
test/haddock-reader.haddock
test/insert
test/lalune.jpg
test/man-reader.man
test/movie.jpg
test/media/rId25.jpg
test/media/rId26.jpg
test/media/rId27.jpg
test/latex-reader.latex
test/textile-reader.textile
test/markdown-reader-more.txt
test/markdown-citations.txt
test/textile-reader.textile
test/mediawiki-reader.wiki
test/vimwiki-reader.wiki
test/creole-reader.txt
test/creole-reader.native
test/rst-reader.rst
test/jats-reader.xml
test/s5-basic.html
test/s5-fancy.html
test/s5-fragment.html
test/s5-inserts.html
test/tables.context
test/tables.docbook4
test/tables.docbook5
test/tables.jats
test/tables.dokuwiki
test/tables.zimwiki
test/tables.icml
test/tables.html4
test/tables.html5
test/tables.latex
test/tables.man
test/tables.ms
test/tables.plain
test/tables.markdown
test/tables.mediawiki
test/tables.tei
test/tables.textile
test/tables.opendocument
test/tables.org
test/tables.asciidoc
test/tables.haddock
test/tables.texinfo
test/tables.rst
test/tables.rtf
test/tables.txt
test/tables.fb2
test/tables.muse
test/tables.custom
test/testsuite.txt
test/writer.latex
test/writer.context
test/writer.docbook4
test/writer.docbook5
test/writer.jats
test/writer.html4
test/writer.html5
test/writer.man
test/writer.ms
test/writer.markdown
test/writer.plain
test/writer.mediawiki
test/writer.textile
test/writer.opendocument
test/writer.org
test/writer.asciidoc
test/writer.haddock
test/writer.rst
test/writer.icml
test/writer.rtf
test/writer.tei
test/writer.texinfo
test/writer.fb2
test/writer.opml
test/writer.dokuwiki
test/writer.zimwiki
test/writer.muse
test/writer.custom
test/writers-lang-and-dir.latex
test/writers-lang-and-dir.context
test/dokuwiki_inline_formatting.dokuwiki
test/lhs-test.markdown
test/lhs-test.markdown+lhs
test/lhs-test.rst
test/lhs-test.rst+lhs
test/lhs-test.latex
test/lhs-test.latex+lhs
test/lhs-test.html
test/lhs-test.html+lhs
test/lhs-test.fragment.html+lhs
test/pipe-tables.txt
test/dokuwiki_external_images.dokuwiki
test/dokuwiki_external_images.native
test/dokuwiki_multiblock_table.dokuwiki
test/dokuwiki_multiblock_table.native
test/fb2/*.markdown
test/fb2/*.fb2
test/fb2/images-embedded.html
test/fb2/images-embedded.fb2
test/fb2/test-small.png
test/fb2/reader/*.fb2
test/fb2/reader/*.native
test/fb2/test.jpg
test/docx/*.docx
test/docx/golden/*.docx
test/docx/*.native
test/epub/*.epub
test/epub/*.native
test/pptx/*.pptx
test/pptx/*.native
test/txt2tags.t2t
test/twiki-reader.twiki
test/tikiwiki-reader.tikiwiki
test/odt/odt/*.odt
test/odt/markdown/*.md
test/odt/native/*.native
test/lua/*.lua
source-repository head
type: git
location: git://github.com/jgm/pandoc.git
flag static
Description: Use static linking for pandoc executable.
Default: False
flag embed_data_files
Description: Embed data files in binary for relocatable executable.
Default: False
flag derive_json_via_th
Description: Use Template Haskell instead of GHC Generics to derive ToJSON
and FromJSON instances.
Default: True
flag trypandoc
Description: Build trypandoc cgi executable.
Default: False
custom-setup
setup-depends: base, Cabal >= 2.0
library
build-depends: base >= 4.8 && < 5,
syb >= 0.1 && < 0.8,
containers >= 0.4.2.1 && < 0.7,
unordered-containers >= 0.2 && < 0.3,
parsec >= 3.1 && < 3.2,
mtl >= 2.2 && < 2.3,
exceptions >= 0.8 && < 0.11,
filepath >= 1.1 && < 1.5,
process >= 1.2.3 && < 1.7,
directory >= 1 && < 1.4,
bytestring >= 0.9 && < 0.11,
text >= 1.1.1.0 && < 1.3,
time >= 1.5 && < 1.10,
safe >= 0.3 && < 0.4,
zip-archive >= 0.2.3.4 && < 0.5,
HTTP >= 4000.0.5 && < 4000.4,
texmath >= 0.11 && < 0.12,
xml >= 1.3.12 && < 1.4,
split >= 0.2 && < 0.3,
random >= 1 && < 1.2,
pandoc-types >= 1.17.5 && < 1.18,
aeson >= 0.7 && < 1.5,
aeson-pretty >= 0.8.5 && < 0.9,
tagsoup >= 0.14.6 && < 0.15,
base64-bytestring >= 0.1 && < 1.1,
zlib >= 0.5 && < 0.7,
skylighting >= 0.7.4 && < 0.8,
data-default >= 0.4 && < 0.8,
temporary >= 1.1 && < 1.4,
blaze-html >= 0.9 && < 0.10,
blaze-markup >= 0.8 && < 0.9,
vector >= 0.10 && < 0.13,
hslua >= 1.0.1 && < 1.1,
hslua-module-text >= 0.2 && < 0.3,
binary >= 0.5 && < 0.11,
SHA >= 1.6 && < 1.7,
haddock-library >= 1.7 && < 1.8,
deepseq >= 1.3 && < 1.5,
JuicyPixels >= 3.1.6.1 && < 3.4,
Glob >= 0.7 && < 0.11,
cmark-gfm >= 0.1.1 && < 0.2,
doctemplates >= 0.2.1 && < 0.3,
network-uri >= 2.6 && < 2.7,
network >= 2.6,
http-client >= 0.4.30 && < 0.6,
http-client-tls >= 0.2.4 && < 0.4,
http-types >= 0.8 && < 0.13,
case-insensitive >= 1.2 && < 1.3,
unicode-transforms >= 0.3 && < 0.4,
HsYAML >= 0.1.1.1 && < 0.2
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*,
-- basement 0.0.8 and foundation 0.0.21, transitive
-- dependencies, drop support for ghc 7.10:
basement < 0.0.8,
foundation < 0.0.21
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
if os(windows)
cpp-options: -D_WINDOWS
else
build-depends: unix >= 2.4 && < 2.8
if flag(embed_data_files)
cpp-options: -DEMBED_DATA_FILES
build-depends: file-embed >= 0.0 && < 0.1
other-modules: Text.Pandoc.Data
if flag(derive_json_via_th)
cpp-options: -DDERIVE_JSON_VIA_TH
if os(windows)
cpp-options: -D_WINDOWS
ghc-options: -Wall -fno-warn-unused-do-bind
if impl(ghc > 8.0)
ghc-options: -Wincomplete-record-updates
-Wnoncanonical-monad-instances
-Wnoncanonical-monadfail-instances
if impl(ghc > 8.4)
ghc-options: -Wincomplete-uni-patterns
-Widentities
-Werror=missing-home-modules
default-language: Haskell2010
other-extensions: NoImplicitPrelude
hs-source-dirs: src
exposed-modules: Text.Pandoc,
Text.Pandoc.App,
Text.Pandoc.Options,
Text.Pandoc.Extensions,
Text.Pandoc.Pretty,
Text.Pandoc.Shared,
Text.Pandoc.MediaBag,
Text.Pandoc.Error,
Text.Pandoc.Filter,
Text.Pandoc.Readers,
Text.Pandoc.Readers.HTML,
Text.Pandoc.Readers.LaTeX,
Text.Pandoc.Readers.LaTeX.Types,
Text.Pandoc.Readers.Markdown,
Text.Pandoc.Readers.CommonMark,
Text.Pandoc.Readers.Creole,
Text.Pandoc.Readers.MediaWiki,
Text.Pandoc.Readers.Vimwiki,
Text.Pandoc.Readers.RST,
Text.Pandoc.Readers.Org,
Text.Pandoc.Readers.DocBook,
Text.Pandoc.Readers.JATS,
Text.Pandoc.Readers.OPML,
Text.Pandoc.Readers.Textile,
Text.Pandoc.Readers.Native,
Text.Pandoc.Readers.Haddock,
Text.Pandoc.Readers.TWiki,
Text.Pandoc.Readers.TikiWiki,
Text.Pandoc.Readers.Txt2Tags,
Text.Pandoc.Readers.Docx,
Text.Pandoc.Readers.Odt,
Text.Pandoc.Readers.EPUB,
Text.Pandoc.Readers.Muse,
Text.Pandoc.Readers.Man,
Text.Pandoc.Readers.FB2,
Text.Pandoc.Writers,
Text.Pandoc.Writers.Native,
Text.Pandoc.Writers.Docbook,
Text.Pandoc.Writers.JATS,
Text.Pandoc.Writers.OPML,
Text.Pandoc.Writers.HTML,
Text.Pandoc.Writers.ICML,
Text.Pandoc.Writers.LaTeX,
Text.Pandoc.Writers.ConTeXt,
Text.Pandoc.Writers.OpenDocument,
Text.Pandoc.Writers.Texinfo,
Text.Pandoc.Writers.Man,
Text.Pandoc.Writers.Ms,
Text.Pandoc.Writers.Markdown,
Text.Pandoc.Writers.CommonMark,
Text.Pandoc.Writers.Haddock,
Text.Pandoc.Writers.RST,
Text.Pandoc.Writers.Org,
Text.Pandoc.Writers.AsciiDoc,
Text.Pandoc.Writers.Custom,
Text.Pandoc.Writers.Textile,
Text.Pandoc.Writers.MediaWiki,
Text.Pandoc.Writers.DokuWiki,
Text.Pandoc.Writers.ZimWiki,
Text.Pandoc.Writers.RTF,
Text.Pandoc.Writers.ODT,
Text.Pandoc.Writers.Docx,
Text.Pandoc.Writers.Powerpoint,
Text.Pandoc.Writers.EPUB,
Text.Pandoc.Writers.FB2,
Text.Pandoc.Writers.TEI,
Text.Pandoc.Writers.Muse,
Text.Pandoc.Writers.Math,
Text.Pandoc.Writers.Shared,
Text.Pandoc.Writers.OOXML,
Text.Pandoc.Lua,
Text.Pandoc.PDF,
Text.Pandoc.UTF8,
Text.Pandoc.Templates,
Text.Pandoc.XML,
Text.Pandoc.SelfContained,
Text.Pandoc.Highlighting,
Text.Pandoc.Logging,
Text.Pandoc.Process,
Text.Pandoc.MIME,
Text.Pandoc.Parsing,
Text.Pandoc.Asciify,
Text.Pandoc.Emoji,
Text.Pandoc.ImageSize,
Text.Pandoc.BCP47,
Text.Pandoc.Class
other-modules: Text.Pandoc.App.CommandLineOptions,
Text.Pandoc.App.FormatHeuristics,
Text.Pandoc.App.Opt,
Text.Pandoc.App.OutputSettings,
Text.Pandoc.Filter.JSON,
Text.Pandoc.Filter.Lua,
Text.Pandoc.Filter.Path,
Text.Pandoc.Readers.Docx.Lists,
Text.Pandoc.Readers.Docx.Combine,
Text.Pandoc.Readers.Docx.Parse,
Text.Pandoc.Readers.Docx.Util,
Text.Pandoc.Readers.Docx.StyleMap,
Text.Pandoc.Readers.Docx.Fields,
Text.Pandoc.Readers.LaTeX.Parsing,
Text.Pandoc.Readers.LaTeX.Lang,
Text.Pandoc.Readers.Odt.Base,
Text.Pandoc.Readers.Odt.Namespaces,
Text.Pandoc.Readers.Odt.StyleReader,
Text.Pandoc.Readers.Odt.ContentReader,
Text.Pandoc.Readers.Odt.Generic.Fallible,
Text.Pandoc.Readers.Odt.Generic.SetMap,
Text.Pandoc.Readers.Odt.Generic.Utils,
Text.Pandoc.Readers.Odt.Generic.Namespaces,
Text.Pandoc.Readers.Odt.Generic.XMLConverter,
Text.Pandoc.Readers.Odt.Arrows.State,
Text.Pandoc.Readers.Odt.Arrows.Utils,
Text.Pandoc.Readers.Org.BlockStarts,
Text.Pandoc.Readers.Org.Blocks,
Text.Pandoc.Readers.Org.DocumentTree,
Text.Pandoc.Readers.Org.ExportSettings,
Text.Pandoc.Readers.Org.Inlines,
Text.Pandoc.Readers.Org.Meta,
Text.Pandoc.Readers.Org.ParserState,
Text.Pandoc.Readers.Org.Parsing,
Text.Pandoc.Readers.Org.Shared,
Text.Pandoc.Readers.Roff,
Text.Pandoc.Writers.Roff,
Text.Pandoc.Writers.Powerpoint.Presentation,
Text.Pandoc.Writers.Powerpoint.Output,
Text.Pandoc.Lua.Filter,
Text.Pandoc.Lua.Global,
Text.Pandoc.Lua.Init,
Text.Pandoc.Lua.Module.MediaBag,
Text.Pandoc.Lua.Module.Pandoc,
Text.Pandoc.Lua.Module.Utils,
Text.Pandoc.Lua.Packages,
Text.Pandoc.Lua.StackInstances,
Text.Pandoc.Lua.Util,
Text.Pandoc.CSS,
Text.Pandoc.CSV,
Text.Pandoc.RoffChar,
Text.Pandoc.UUID,
Text.Pandoc.Translations,
Text.Pandoc.Slides,
Paths_pandoc
autogen-modules: Paths_pandoc
buildable: True
executable pandoc
build-depends: pandoc, base >= 4.8 && < 5
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
ghc-options: -rtsopts -with-rtsopts=-K16m -Wall -fno-warn-unused-do-bind -threaded
if flag(static)
ld-options: -static
default-language: Haskell2010
other-extensions: NoImplicitPrelude
hs-source-dirs: .
main-is: pandoc.hs
buildable: True
other-modules: Paths_pandoc
executable trypandoc
main-is: trypandoc.hs
hs-source-dirs: trypandoc
default-language: Haskell2010
other-extensions: NoImplicitPrelude
if flag(trypandoc)
build-depends: base, aeson, pandoc,
text, wai-extra, wai >= 0.3, http-types
buildable: True
else
buildable: False
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
benchmark weigh-pandoc
type: exitcode-stdio-1.0
main-is: weigh-pandoc.hs
hs-source-dirs: benchmark
build-depends: pandoc,
base >= 4.8 && < 5,
text,
weigh >= 0.0 && < 0.1,
mtl >= 2.2 && < 2.3
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
default-language: Haskell2010
other-extensions: NoImplicitPrelude
test-suite test-pandoc
type: exitcode-stdio-1.0
main-is: test-pandoc.hs
hs-source-dirs: test
build-depends: base >= 4.8 && < 5,
pandoc,
pandoc-types >= 1.17.5 && < 1.18,
bytestring >= 0.9 && < 0.11,
base64-bytestring >= 0.1 && < 1.1,
text >= 1.1.1.0 && < 1.3,
time >= 1.5 && < 1.10,
directory >= 1 && < 1.4,
filepath >= 1.1 && < 1.5,
hslua >= 1.0 && < 1.1,
process >= 1.2.3 && < 1.7,
temporary >= 1.1 && < 1.4,
Diff >= 0.2 && < 0.4,
tasty >= 0.11 && < 1.3,
tasty-hunit >= 0.9 && < 0.11,
tasty-quickcheck >= 0.8 && < 0.11,
tasty-golden >= 2.3 && < 2.4,
QuickCheck >= 2.4 && < 2.13,
containers >= 0.4.2.1 && < 0.7,
executable-path >= 0.0 && < 0.1,
zip-archive >= 0.2.3.4 && < 0.5,
xml >= 1.3.12 && < 1.4,
Glob >= 0.7 && < 0.11
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
other-modules: Tests.Old
Tests.Command
Tests.Helpers
Tests.Lua
Tests.Shared
Tests.Readers.LaTeX
Tests.Readers.HTML
Tests.Readers.JATS
Tests.Readers.Markdown
Tests.Readers.Org
Tests.Readers.Org.Block
Tests.Readers.Org.Block.CodeBlock
Tests.Readers.Org.Block.Figure
Tests.Readers.Org.Block.Header
Tests.Readers.Org.Block.List
Tests.Readers.Org.Block.Table
Tests.Readers.Org.Directive
Tests.Readers.Org.Inline
Tests.Readers.Org.Inline.Citation
Tests.Readers.Org.Inline.Note
Tests.Readers.Org.Inline.Smart
Tests.Readers.Org.Meta
Tests.Readers.Org.Shared
Tests.Readers.RST
Tests.Readers.Docx
Tests.Readers.Odt
Tests.Readers.Txt2Tags
Tests.Readers.EPUB
Tests.Readers.Muse
Tests.Readers.Creole
Tests.Readers.Man
Tests.Readers.FB2
Tests.Writers.Native
Tests.Writers.ConTeXt
Tests.Writers.Docbook
Tests.Writers.HTML
Tests.Writers.JATS
Tests.Writers.Markdown
Tests.Writers.Org
Tests.Writers.Plain
Tests.Writers.AsciiDoc
Tests.Writers.LaTeX
Tests.Writers.Docx
Tests.Writers.RST
Tests.Writers.TEI
Tests.Writers.Muse
Tests.Writers.FB2
Tests.Writers.Powerpoint
Tests.Writers.OOXML
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
default-language: Haskell2010
other-extensions: NoImplicitPrelude
benchmark benchmark-pandoc
type: exitcode-stdio-1.0
main-is: benchmark-pandoc.hs
hs-source-dirs: benchmark
build-depends: pandoc,
time, bytestring, containers,
base >= 4.8 && < 5,
text >= 1.1.1.0 && < 1.3,
mtl >= 2.2 && < 2.3,
criterion >= 1.0 && < 1.6
if impl(ghc < 8.0)
build-depends: semigroups == 0.18.*
if impl(ghc < 8.4)
hs-source-dirs: prelude
other-modules: Prelude
build-depends: base-compat >= 0.9
ghc-options: -rtsopts -Wall -fno-warn-unused-do-bind -threaded
default-language: Haskell2010
other-extensions: NoImplicitPrelude

@ -1,11 +0,0 @@
SHA512 (pandoc-2.14.0.3.tar.gz) = 38ac4f35ac6483e30e234cf5df74795c80594425092fe059cd870d8b8af15249d88655c13477346a7eaf51a0152078e30915867fb55b7cef801074c618f3c262
SHA512 (hslua-module-system-0.2.2.1.tar.gz) = 66cf57b8c80605bdfa5145fc61dbe59b66dd67a82a8365006b80e2ab74a71fff0fdf0ffa690daab66e82b8ad086adbcd622a6844b2107c0b9719b8cdabdf542b
SHA512 (ipynb-0.1.0.1.tar.gz) = b1e547ac9353c84619832c723586146d2fd72c85c75d11b9ff99c16852ae2dfd1a2d61382ab9cc54bc9ad2bf8e1c3c0a8dc50d49c034d525e7a3393057a0275b
SHA512 (emojis-0.1.tar.gz) = 587c67bff3f77c362b16c93889762a9aad6fb5250c0bced45f5053f59dd6a11ab2886e53f286bbc4de2b8793be133708b1f9c5d4d52bcef1820f5a7c1ecfa7d2
SHA512 (jira-wiki-markup-1.4.0.tar.gz) = f20bf4b5242657a34cae1aeeb88ba6de61748ccc212243ae6a6d5a4defc3e2ad25445705a87a55d5cb3b6378f5f500887bf509459a66741a75a49025e1549750
SHA512 (citeproc-0.4.0.1.tar.gz) = 1d9d166a0915eba722c4e6b0af6f987dd48f850f3649c873ecfc6cf4eda4cfea2749c853efd2880e28214eb2e19410a741a950a3532994e6cc9c0dc567e01757
SHA512 (commonmark-0.2.1.tar.gz) = b91a02d44c95d1691fe8df8e380e4754cda98d0b3c5ec93163a71ecf596c5a5ac9bb54d618a13427211837c80e4e83c4a3dcc7b9ef18655ff0dadddc6121d665
SHA512 (commonmark-extensions-0.2.1.2.tar.gz) = f2a41ad2f71d67512affc0c5882d86256e7b9f7dce1194c8a6708ba5dfbb0807d8dbdd8a7972c6c2e0a0dcf6695fe68cd1430488756222dc1a545671e0aa10e1
SHA512 (commonmark-pandoc-0.2.1.1.tar.gz) = fe3dfee3eec4e400c896db5427a6f228b94b71e7bb6d6ace6eead0fe2a495d931e355649f1652cc3b3a928b8abd22f37e6005b3a43d3c95e255c858c89246842
SHA512 (hslua-module-path-0.1.0.1.tar.gz) = b6448d187ffff02340612c69d28fde429186de44874f52a01b3b3cc77cfe7a105426b4cdbe8e27b13620869a64ac0893abbfc5ffd7d2d500008efb94af00a3bb
SHA512 (unicode-collation-0.1.3.tar.gz) = ad952a10ee259f9c8d43b3d04a4bc4f093de51d3254092b168c79811a0ded2fdf7004a291e999c5f11a8f6971444e7745b471534343ab294325293d1a23b21bc
Loading…
Cancel
Save