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?
Read the readme if you've never used ocw-to-hugo before and make sure you're set up to download courses from S3
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?
ocw-to-hugo
before and make sure you're set up to download courses from S3private/courses.json
:node . -i private/ -o private/output --courses private/courses.json --download --rm
onmaster
node . -i private/ -o private/test--courses private/courses.json --download --rm
oncg/remove-nested-code-blocks
private/output
andprivate/test
and verify that backticks inside code blocks have been properly removed