try to convert to html #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Convert Markdown with Mermaid to PDF | |
on: | |
push: | |
paths: | |
- '**/*.md' | |
workflow_dispatch: | |
jobs: | |
convert_md_to_pdf: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install markdown-it and markdown-it-mermaid | |
run: | | |
npm install -g markdown-it-cli | |
npm install markdown-it markdown-it-mermaid | |
- name: Convert Markdown to HTML | |
run: | | |
npx markdown-it cool-root-doc.md --use=markdown-it-mermaid > cool-root-doc.html | |
- name: Upload HTML file as an artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: html-file | |
path: README.html |