History block renders incorrectly when notes have newlines

This history block has some broken formatting: https://new.docs.gitlab.com/user/project/integrations/google_artifact_management/

Compare to the current site: https://docs.gitlab.com/ee/user/project/integrations/google_artifact_management/

Expected Actual
image image

Page source: https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/user/project/integrations/google_artifact_management.md

Seems like an issue with the migration code getting caught up on the code formatting in the content. (Edit: It's actually the newline, not the code formatting.)

The problem is likely in here somewhere: https://gitlab.com/gitlab-org/technical-writing-group/gitlab-docs-hugo/-/blob/main/cmd/gldocs/tasks/migrate_history.go?ref_type=heads

Edited by Sarah German