Adds an Edit in mermaid.live link beneath Mermaid diagrams and styles them for sizing and clean PDF export.