Commit 01635ed9 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '37282-fix-mermaid-svg-scaling' into 'master'

Fix Mermaid diagram scaling

Closes #37282

See merge request gitlab-org/gitlab!25016
parents dc24e47d 07f5ccbe
......@@ -82,7 +82,7 @@ function renderMermaidEl(el) {
return;
}
svg.classList.add('mermaid');
svg.classList.add('mermaid', 'mw-100');
// pre > code > svg
svg.closest('pre').replaceWith(svg);
......
---
title: Force mermaid diagrams to be scaled to fit within browser window when used in markdown
merge_request: 25016
author: Christopher Stryker
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment