I've discovered my own solution... the project (which I've inherited) had a utility JS function that was replacing new lines and break tags with empty strings, which was apparently needed in the older version of Next.js. This in turn affected the highlight.js plugin, which ultimately worked without this now-unhelpful "helper" function. Once again, deleting code saved the day.
1 Like