From 19db19bb80549577fbfc16f3cd4fd3d29c28adc2 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 5 Jan 2022 19:44:38 +0000 Subject: [PATCH] doc: fix example commands for `REPLACEME` updates Split the two example command lines for updating the `REPLACEME` tags into separate `console` fenced code blocks. This fixes some stray "`" characters and makes each example one-click copiable when viewing the guide in GitHub's web UI. PR-URL: https://github.com/nodejs/node/pull/41269 Refs: https://github.com/nodejs/node/pull/39544 Reviewed-By: Colin Ihrig Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Beth Griggs --- doc/guides/releases.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/guides/releases.md b/doc/guides/releases.md index beb49771beb46e..a3a3b51f8bf85f 100644 --- a/doc/guides/releases.md +++ b/doc/guides/releases.md @@ -326,7 +326,13 @@ grep REPLACEME doc/api/*.md and substitute this node version with ```console -sed -i "s/REPLACEME/$VERSION/g" doc/api/*.md` or `perl -pi -e "s/REPLACEME/$VERSION/g" doc/api/*.md +sed -i "s/REPLACEME/$VERSION/g" doc/api/*.md +``` + +or + +```console +perl -pi -e "s/REPLACEME/$VERSION/g" doc/api/*.md ``` `$VERSION` should be prefixed with a `v`.