Fix Mermaid diagrams failing when node labels contain line breaks (#37296)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Nicolas
2026-04-19 17:39:40 +02:00
committed by GitHub
parent 2f5b5a9e9c
commit 284298f2a9
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ async function initRepoPullRequestMergeForm(box: HTMLElement) {
view.mount(el);
}
function executeScripts(elem: HTMLElement) {
function executeScripts(elem: Element) {
// find any existing nonce value from the current page and apply it to the new script
const scriptNonce = document.querySelector('script[nonce]')!.getAttribute('nonce')!;
for (const oldScript of elem.querySelectorAll('script')) {