Skip to content

Commit

Permalink
Test needs pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Apr 10, 2024
1 parent 9460ed1 commit fb7a127
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup pandoc
uses: nikeee/setup-pandoc@v1
with:
pandoc-version: 3.1.12.2
- name: npm install, build, and test
run: |
npm ci
Expand Down
3 changes: 2 additions & 1 deletion test/pandoc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ describe("OASIS voc build", function () {
}),
},
{
"-c": "style.css",
"-c": "style.css",
"-F": `${__dirname}/../lib/md2html.js`,
"-M": "title=Test",
"--template": "${__dirname}/../assets/template",
},
);
Expand Down
5 changes: 4 additions & 1 deletion test/test-data/pandoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>-</title>
<title>Test</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand All @@ -25,6 +25,9 @@
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">
<header id="title-block-header">
<h1 class="title">Test</h1>
</header>
<table>
<thead>
<tr class="header">
Expand Down

0 comments on commit fb7a127

Please sign in to comment.