Skip to content

Commit

Permalink
Fix headers inside admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 19, 2024
1 parent 0404d64 commit a2217ed
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/css/content/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
border-left: 0;
}

.content-inner blockquote:is(.warning, .error, .info, .neutral, .tip) :is(h1, h2, h3, h4, h5, h6) {
color: var(--black);
}

.content-inner blockquote.warning {
background-color: var(--warningBackground);
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions test/examples/admonition.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Starting with header 3

> ### Just a blockquote.
>
> Some `code`.
>
> ```elixir
> foo + bar
> ```
>
> ```text
> no highlight
> ```
> ### Header 3 {: .info}
>
> #### Header 4
Expand Down Expand Up @@ -74,6 +86,14 @@
## Starting with header 4
> #### Just a blockquote.
>
> Some `code`.
>
> ```erlang
> Foo + Bar.
> ```
> #### Header 4 {: .info}
>
> Some `code`.
Expand Down

0 comments on commit a2217ed

Please sign in to comment.