Skip to content

How to pass options to pandoc? #636

@zzjjzzgggg

Description

@zzjjzzgggg

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions