The GitLab integration with a PlantUML server is great for issues, however, we have puml files commented along side our code.
If the file extension is "puml" to use the existing PlantUML intergration to render the document.