mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-15 11:45:30 +02:00
1. Fix JS error when copying Mermaid and Math block sources, regression from https://github.com/go-gitea/gitea/pull/39718. 1. Restore the newline trim which is consistent with the majority of forges and markdown renderers as per https://github.com/go-gitea/gitea/pull/39751#issuecomment-6129002625 and my strong preference. This is the minimal fixes to fix the bug and restore the existing behaviour, more discussions and followups can be had in https://github.com/go-gitea/gitea/pull/39751.