From 4d165fa510b4ef707cbdce0abfa230bd7e76d1d7 Mon Sep 17 00:00:00 2001 From: Antoine Stevan <44101798+amtoine@users.noreply.github.com> Date: Sat, 11 Nov 2023 16:17:55 +0100 Subject: [PATCH] fix the indentation of the comments in the release note template... (#663) was writing https://github.com/nushell/nushell.github.io/pull/1114 and noticed a very nice bug... yeah HTML comments in `.md` documents can't be indented otherwise `npm install` + `npm run dev` can't render the page :eyes: --- make_release/release-note/template.md | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/make_release/release-note/template.md b/make_release/release-note/template.md index bda92d91..b2d62434 100644 --- a/make_release/release-note/template.md +++ b/make_release/release-note/template.md @@ -34,21 +34,21 @@ As part of this release, we also publish a set of optional plugins you can insta - [*Changes to existing commands*](#changes-to-existing-commands) - [*Deprecated commands*](#deprecated-commands) - [*Removed commands*](#removed-commands) - + the following command should help pre-generate a great deal of the table of content. + be careful with the format and false-positives :wink: + ```nushell + rg '^#+ ' blog/... + | lines + | each { + str replace '# ' '- ' + | str replace --all '#' ' ' + | str replace --regex '- (.*)' '- [*$1*](#$1-toc)' + } + | to text + ``` +--> - [*Breaking changes*](#breaking-changes) - [*Full changelog*](#full-changelog)