uniform-pandoc: handling of some pandoc stuff

[ library, uniform-handling-of---some-pandoc-stuff ] [ Propose Tags ] [ Report a vulnerability ]

remove particular aspects of abstraction


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.5.1, 0.1.5.2
Change log ChangeLog.md
Dependencies aeson, base (>=4.7 && <5), bytestring, doclayout, doctemplates, pandoc (>=2.11), uniform-json (>=0.1.5.2), uniformBase (>=0.1.5.1) [details]
License LicenseRef-GPL
Copyright 2021 Andrew U. Frank
Author Andrew Frank
Maintainer Andrew U. Frank <andrewufrank@gmail.com>
Category Uniform handling of some pandoc stuff
Home page https://github.com/andrewufrank/u4blog.git#readme
Bug tracker https://github.com/andrewufrank/u4blog.git/issues
Source repo head: git clone https://github.com/andrewufrank/u4blog.git(uniform-pandoc)
Uploaded by andrewufrank at 2023-04-06T19:56:06Z
Distributions NixOS:0.1.5.2
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 139 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-04-06 [all 1 reports]

Readme for uniform-pandoc-0.1.5.2

[back to package description]

Package Pandoc for use in a Static Web Generator (e.g. daino)

Pandoc is convenient to used for the conversion of the source of a web page (structured as markdown with metadata) to the html and the pdf files in a web site (including options to print). The functions collected in this package must not depend on

  • the structure of the storage or the presentation of the site, neither before or after the conversion (this is concentrated in, for example, in the modules in daino).
  • specific choices of how the posts are converted.

Therefore:

  • the input for the function is either text, json, or absolute path; the results are some text format (text, html).
  • details of the conversions are explicitly stated and not controlled values in modules in this package.

The main functions are:

  • md -> docrep: bakeOneMD2docrep readMarkdown2docrep (in Markdown.hs) checkDocrep (completes the yaml meta data, the yaml meta data override what is in pandoc) -- move from ssg addRefs (in Docrep.hs)

    • issue: docrep structure potentially conflict between the yaml collected from md and values in pandoc meta
  • docrep -> panrep: bakeOneDocrep2panrep docrep2panrep
    addindex2yam

  • panrep ->

    • convTex2pdf, calling - write2pdf (runs lualatex)
    • convPanrep2html, calling - bakeOneFile2panrep - docrep2panrep

Common Structures imported in daino are: import Uniform.PandocImports ( panrepFileType, texSnipFileType )