Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Mermaid block styling and block content #1453

Closed
chalin opened this issue Mar 2, 2023 · 0 comments · Fixed by #1456
Closed

Adjust Mermaid block styling and block content #1453

chalin opened this issue Mar 2, 2023 · 0 comments · Fixed by #1456
Labels
cleanup/refactoring design/style Front-end site design / styling

Comments

@chalin
Copy link
Collaborator

chalin commented Mar 2, 2023

  • Context: Use <pre> tag for mermaid code blocks #1451
  • As a <div> the Mermaid code block has no extra styling.
    Now as a <pre> it does -- extra padding all around, in particular -- since it applies to all td pre elements.
  • We should also avoid introducing extra whitespace the <pre> element: use {{- .Inner -}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup/refactoring design/style Front-end site design / styling
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant