mitodl / ocw-to-hugo

A command line utility for taking master.json output from ocw-data-parser and producing markdown for use with hugo-course-publisher
3 stars 0 forks source link

replace all backticks inside code blocks with nothing #519

Closed gumaerc closed 2 years ago

gumaerc commented 2 years ago

Pre-Flight checklist

What are the relevant tickets?

Part of https://github.com/mitodl/ocw-hugo-themes/issues/704

What's this PR do?

This PR adds functionality to the codeblockfix rule to ensure that elements that normally produce inline code blocks (code, kbd, tt, samp) do not do so when included inside an element that produces a multi-line code block. This is done by simply replacing backticks inside multi-line code blocks with nothing. This PR also updates the version of Node used in the CI Github Actions runner as it was causing a test to fail.

How should this be manually tested?