#!/bin/sh
# At build time, run only a smoke test: the full test/compare.js depends on
# the exact rendering of man/groff which keeps changing between versions
# (man-db 2.12, groff 1.24…). The full test still runs as autopkgtest.
set -ex
nodejs --input-type=module -e "import { marked } from 'marked'; import markedMan from 'marked-man'; marked.use(markedMan); console.log(marked.parse('# foo\n\nhello\n', { name: 'foo', date: '1979-01-01' }))"
