Skip to content

Commit

Permalink
chore: generate remark-compatible blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden authored and kellyselden committed Aug 4, 2020
1 parent 2704690 commit 48d9bd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/precommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ const rootDirectory = path.resolve(__dirname, '..');

async function replace({ replacementRegex, replacementText, filePath }) {
replacementText = `$1
\`\`\`
${replacementText}
\`\`\`
$2`;

await replaceFile(filePath, (contents) => {
Expand Down

0 comments on commit 48d9bd8

Please sign in to comment.