npm i -g marky-markdown
marky-markdown input.md > output.html
cat output.html
npmjs display pages use Maruku markdown. If you want to see how they will be displayed use the npm package marky-markdown as this is what npmjs uses. A full description is available on their blog.