# Pandoc: passing options in config file

**URL:** <https://discourse.gohugo.io/t/pandoc-passing-options-in-config-file/27709>\
**Category:** support\
**Created:** [August 20, 2020, 7:22pm UTC](https://discourse.gohugo.io/t/pandoc-passing-options-in-config-file/27709 "2020-08-20T19:22:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laszewsk](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/laszewsk/32/12154_2.png) [@laszewsk](https://discourse.gohugo.io/u/laszewsk)\
**Post date:** [August 20, 2020, 7:22pm UTC](https://discourse.gohugo.io/t/pandoc-passing-options-in-config-file/27709/1 "2020-08-20T19:22:57Z")

</div>

How do I pass additional options to pandoc, when a .pdc file is found. I like to set this up in the config file, but can not find an example nor can I figure out if that is even possible.  
We need much more than the option --mathjax coded in the source.

How can we avoid creating custom hugo versions with hardcoded options and instead passing them along in a config file.

An example would be real great. Or if you have code that we can put into a pull request to hugo so this becomes documented and implemented that would be great. I am not sure if this is already implemented or not.

Thanks

Gregor  
[laszewski@gmail.com](mailto:laszewski@gmail.com)
