Skip to content

Commit

Permalink
force left-align for code in layout to beat the mermaid centering div…
Browse files Browse the repository at this point in the history
… setting
  • Loading branch information
cscheid committed Jun 29, 2023
1 parent aa42582 commit 4b99673
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/resources/formats/html/_quarto-rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ figure .quarto-layout-row figure figcaption {
.quarto-figure-right > figure > div /* for mermaid and dot diagrams */ {
text-align: right;
}

.quarto-figure > figure > div code {
text-align: left; /* override align center for code blocks */
}

figure > p:empty {
display: none;
}
Expand Down

0 comments on commit 4b99673

Please sign in to comment.