OxfordRSE / gutenberg

https://oxfordrse.github.io/gutenberg
BSD 3-Clause "New" or "Revised" License
5 stars 7 forks source link

Title spacing within callouts broken #132

Closed smangham closed 10 months ago

smangham commented 10 months ago

Titles used within callouts end up with extra padding beforehand. For an example from here

:::callout
## Authentication Errors

If you get a warning that HTTPS access is deprecated, or a token is required, then you
accidentally cloned the repository using HTTPS and not SSH. You can fix this from the command line
by resetting the remote repository URL setting on your local repo:

~~~bash
$ git remote set-url origin git@github.com:OxfordRSE/oxrse_unit_conv.git
~~~
:::

Renders to (with extra . to force spacing):

.

Authentication Errors

If you get a warning that HTTPS access is deprecated, or a token is required, then you accidentally cloned the repository using HTTPS and not SSH. You can fix this from the command line by resetting the remote repository URL setting on your local repo:

$ git remote set-url origin git@github.com:OxfordRSE/oxrse_unit_conv.git

But # titles don't add extra space beforehand, to the extent they look too flush to the callout box. Screenshot 2024-01-16 111702

It doesn't look like there's a callout class on the box, it might be helpful to get one so a callout.h1 style override can be added (unless that sort of thing's being intentionally avoided). Alternatively, adding a title argument to callouts like with exercises would help.