jgm / jgm/gitit

How to pass options to pandoc?

Open
#636 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.3k
Forks
231
PR merge metrics
No merged PRs in 30d

Description

I set org as the default page type in gitit. However, the default pandoc options in gitit cannot correctly parse Asian language because an additional space character will be inserted in the HTML if there is a line break in the sentence in the source file (say, org).

The correct way to let pandoc parse Asian language is as follows.
`pandoc -f org+east_asian_line_breaks -t html -o test.html test.org`.

The problem is how to pass the correct option to pandoc? If I set `default-page-type: org+east_asian_line_breaks` in gitit.conf, there raises an error:

> gitit: Unknown page type: org+east_asian_line_breaks
> CallStack (from HasCallStack):
> error, called at src/Network/Gitit/Util.hs:112:26 in gitit-0.12.3.1-HUbEGb7wE0e3DNcRrkhwOv:Network.Gitit.Util

This may be related to issue #215

Please guide. Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.