Skip to content

WillFantom/md2pdf-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MD2PDF Action

Convert MD files to PDF automatically (with CSS)!


Converts a pattern described set of markdown files and converts them to pdf whilst applying css to the middle-ground html. Converted files exist at the same path, just with the extension set to .pdf (e.g. ./README.md becomes ./README.pdf).

Inputs

Input Description Default
markdownSrcPattern The pattern used to find the source markdown files **.md
baseDir The base path to use for internal links (such as local images) .
cssFilePattern The pattern to a CSS file to use in the conversion **.css
markdownExtras Comma-separated list of markdown2 extras cuddled-lists,tables,header-ids,fenced-code-blocks,toc

See all the markdown2 extras here

Outputs

Output Description
convertedFiles A comma-separated list of converted files (with no extension)

About

Github action to convert Markdown files to PDFs πŸ“„πŸš€

Resources

License

Stars

Watchers

Forks