uniform-pandoc: handling of some pandoc stuff

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

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), doclayout, doctemplates, pandoc (>=2.11), uniform-json (>=0.0.6), uniformBase (>=0.1.4) [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/git@github.com:andrewufrank/u4blog.git#readme
Bug tracker https://github.com/git@github.com:andrewufrank/u4blog.git/issues
Source repo head: git clone https://github.com/git@github.com:andrewufrank/u4blog.git(uniform-pandoc)
Uploaded by andrewufrank at 2023-03-15T21:04:30Z
Distributions NixOS:0.1.5.2
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 98 total (6 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-03-15 [all 1 reports]

Readme for uniform-pandoc-0.1.5.1

[back to package description]

Package Pandoc in Blog

Pandoc is exetensively used in the conversion of the blog contributions (structured as markdown with metada) to the html and the pdf files in the blog as web presence (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 SSG).
  • specific choices of how the posts are converted.

Therefore:

  • the input for the function is either text, json, or absulte path; the results are some text format (text, html).
  • details of the conversions are explicitely 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 potentical conflict between the yaml collected from md and values in pandoc meta
  • docrep -> panrep: bakeOneDocrep2panrep docrep2panrep (todo fix docrep) addindex2yam

  • panrep ->

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

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