Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execpath array accepts variable for dynamic patch configuration #43

Open
veenone opened this issue Oct 1, 2024 · 1 comment
Open

Execpath array accepts variable for dynamic patch configuration #43

veenone opened this issue Oct 1, 2024 · 1 comment

Comments

@veenone
Copy link

veenone commented Oct 1, 2024

The newly introduced execpath with array input is a great way to manage plantuml jar for document generation. However currently we need to hardcode the path of plantuml jar as below :

--- 
diagram: 
  engine: 
    plantuml: 
      execpath: ['java', '-jar', 'c:/tools/plantuml.jar']
  mime-types: 
    application/pdf: false 
    image/png: true 

...

My request is to enable dynamic path configuration, maybe using variable so the path can be configured somewhere else (i.e: in make file, environment variable..)

Maybe the configuration will look like this:

--- 
diagram: 
  engine: 
    plantuml: 
      execpath: ['java', '-jar', $(TOOL_DIR)'/plantuml.jar']
  mime-types: 
    application/pdf: false 
    image/png: true 

...

Or it can be passed in pandoc commandline:

Pandoc --metadata=diagram.engine.plantuml.execpath: '"java","-jar","$(TOOL_DIR)/plantuml.jar"'
@tarleb
Copy link
Member

tarleb commented Oct 1, 2024

Related issue: jgm/pandoc#10252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants