GESIS-Methods-Hub / andrew

Content Aggregation System for tutorials and vignette of reproducible computational methods.
https://gesis-methods-hub.github.io/andrew/
MIT License
2 stars 0 forks source link

Render README fails with full author name #159

Closed rgaiacs closed 1 year ago

rgaiacs commented 1 year ago
pandoc --output index.md-tmp --shift-heading-level-by -1 --metadata 'author:Raniere Silva' --metadata 'image:./img/cover.jpg' --metadata method:true --metadata citation: true --metadata github_https:https://github.com/GESIS-Methods-Hub/minimal-example-readme --metadata github_user_name:GESIS-Methods-Hub --metadata github_repository_name:minimal-example-readme --metadata docker_image:andrew/gesis-methods-hub/minimal-example-readme:d75a3958820d5a8c0d1e2def06e5cce7a3cd1b7f --metadata git_hash:39ec63808e80d5b3a00d720314583ab58bd5eee4 --metadata git_date:2023-07-21 --metadata info_quarto_version:1.4.243 --metadata source_filename:README.md
  to: markdown
  standalone: true
  default-image-extension: png

metadata
  prefer-html: true

pandoc: Silva': withBinaryFile: does not exist (No such file or directory)
INFO [2023-07-27 08:55:49] Rendering complete. Docker returned 1.
rgaiacs commented 1 year ago

The issue here is the way that Bash environment variables are used. The follow Bash script reproduces the error

#!/bin/bash

AUTHOR="--metadata='Foo Bar'"

quarto render \
    mwe.md \
    --output=o.md \
    $AUTHOR

Example of execution

$ ./wrapper.sh 
pandoc --output o.md --metadata 'Foo Bar'
  to: html
  standalone: true
  section-divs: true
  html-math-method: mathjax
  wrap: none
  default-image-extension: png

metadata
  document-css: false
  link-citations: true
  date-format: long
  lang: en

pandoc: Bar': withBinaryFile: does not exist (No such file or directory)