I am unable to reproduce the problem with a test file (content/post/test.adoc) that contains over 2500 paragraphs.
Try it:
git clone --single-branch -b hugo-forum-topic-40417 https://github.com/jmooring/hugo-testing hugo-forum-topic-40417
cd hugo-forum-topic-40417
npm run server
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN deprecated @fortawesome/fontawesome-common-types@0.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
npm WARN deprecated @fortawesome/fontawesome-svg-core@1.3.0: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /home/jmooring/temp/hugo-forum-topic-40417/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jmooring/.npm/_logs/2022-09-09T03_46_32_508Z-debug-0.log
That makes no difference… npm install still throws errors. Downgraded node.js to v14.19.3 and had the same problem.
Sorry, but I can’t spend any more time on this. As stated earlier, the page is not truncated when running asciidoctor as a stand-alone application. Your problem seems to be related to running asciidoctor through node/npm.