Skip to content

Fix broken list in ‘Install with npm’ instructions#605

Merged
36degrees merged 1 commit into
mainfrom
fix-broken-list-install-npm
Feb 26, 2026
Merged

Fix broken list in ‘Install with npm’ instructions#605
36degrees merged 1 commit into
mainfrom
fix-broken-list-install-npm

Conversation

@36degrees
Copy link
Copy Markdown
Contributor

The extra line break causes the markdown parser to treat the lines starting with dashes as a separate list, rather than a nested list under the first numbered bullet, so we end up with:

The first item in the list, numbered 1, then a separate unordered list, then the second item in the list, also numbered 1

Remove the extra line break to fix the nested list, like so:

The first item in the list, numbered 1, then a nested unordered list, then the second item in the list, now correctly numbered 2

Make the same change to the v5 docs, where the same issue occurs. (The v4 docs do not include this guidance)

The extra line break causes the markdown parser to treat the lines starting with dashes as a separate list, rather than a nested list under the first numbered bullet, so we end up with:

1. Copy the following 3 items:
- /node_modules/govuk-frontend/dist/govuk/assets/images folder to <YOUR-APP>/assets/images
- /node_modules/govuk-frontend/dist/govuk/assets/fonts folder to <YOUR-APP>/assets/fonts
- /node_modules/govuk-frontend/dist/govuk/assets/manifest.json file to <YOUR-APP>/assets
1. Run your application, then use the Fonts tab in Firefox Page Inspector to check the accordion is using the GDS Transport font.

Remove the extra line break to fix the nested list.

Make the same change to the v5 docs, where the same issue occurs. (The v4 docs do not include this guidance)
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 26, 2026

Deploy Preview for govuk-frontend-docs-preview ready!

Name Link
🔨 Latest commit 8346f07
🔍 Latest deploy log https://app.netlify.com/projects/govuk-frontend-docs-preview/deploys/69a04f600dffc1000803d42b
😎 Deploy Preview https://deploy-preview-605--govuk-frontend-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@romaricpascal romaricpascal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all fixed 🙌🏻

@36degrees 36degrees merged commit 9619940 into main Feb 26, 2026
5 checks passed
@36degrees 36degrees deleted the fix-broken-list-install-npm branch February 26, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants