blob: e4562beecd2466ecc9c7748ee6f627a144a0af0b (
plain)
- #!/usr/bin/env cwl-runner
- cwlVersion: v1.0
- class: Workflow
- $namespaces:
- dc: http://purl.org/dc/elements/1.1/
- license: https://spdx.org/licenses/
- inputs:
- annotated_markdown: File
- outputs:
- annotated_html:
- type: File
- outputSource: convert_to_html/html_with_rdfa
- annotated_pdf:
- type: File
- outputSource: convert_to_pdf/latex_with_xmp
- markdown_with_metadata:
- type: File
- outputSource: extract/markdown
- plain_markdown:
- type: File
- outputSource: strip/markdown
- steps:
- convert_to_html:
- in:
- input_file: annotated_markdown
- output_format:
- default: html
- run: pandoc-filter-tool.cwl
- out:
- - html_with_rdfa
- - latex_with_xmp
- convert_to_pdf:
- in:
- input_file: annotated_markdown
- output_format:
- default: pdf
- run: pandoc-filter-tool.cwl
- out:
- - html_with_rdfa
- - latex_with_xmp
- extract:
- in:
- input_file: annotated_markdown
- output_format:
- default: commonmark
- run: pandoc-filter-tool.cwl
- out:
- - markdown
- strip:
- in:
- input_file: annotated_markdown
- output_format:
- default: commonmark
- run: pandoc-filter-tool.cwl
- out:
- - markdown
- dc:license: license:GPL-3.0-or-later
- dc:rights: Copyright 2025, Jonas Smedegaard <dr@jones.dk>
|