aboutsummaryrefslogtreecommitdiff
path: root/workflow/pandoc-filter-tool.cwl
blob: d657d08c9ac498b73392926ff12776fae25dead7 (plain)
  1. #!/usr/bin/env cwl-runner
  2. cwlVersion: v1.0
  3. class: CommandLineTool
  4. label: Pandoc filter
  5. doc: Transforms Pandoc AST
  6. $namespaces:
  7. dc: http://purl.org/dc/elements/1.1/
  8. license: https://spdx.org/licenses/
  9. inputs:
  10. input_file:
  11. type: File
  12. inputBinding:
  13. position: 1
  14. output_format:
  15. type: string
  16. inputBinding:
  17. prefix: -t
  18. position: 2
  19. outputs:
  20. html_with_rdfa:
  21. type: File
  22. outputBinding:
  23. glob: output.${output_format}
  24. latex_with_xmp:
  25. type: File
  26. outputBinding:
  27. glob: output.${output_format}
  28. markdown:
  29. type: File
  30. outputBinding:
  31. glob: output.${output_format}
  32. stdout: output
  33. baseCommand: pandoc
  34. arguments:
  35. - --output=output.${output_format}
  36. dc:license: license:GPL-3.0-or-later
  37. dc:rights: Copyright 2025, Jonas Smedegaard <dr@jones.dk>
  38. stdin: $(inputs.file1.path)