The examples above are taken from YAML specification and loaded in a NextJS project with yaml-loader
As you can see, the loader can handle these structures well
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.