data-hazards icon indicating copy to clipboard operation
data-hazards copied to clipboard

Rich text in Sphinx panel titles

Open ninadicara opened this issue 2 years ago • 0 comments

On the Data Hazard labels page the hazards are presented in a panel format. Since making the panels clickable stretched links I haven't been able to make the titles of the panels bold (in the :text: option). So, for now, I've left :text: as an empty string and added the title to the main body. This is a slightly hacky solution and creates annoying empty space at the top of the panel.

I have tried adding <strong> HTML tags, markdown formatting but neither have worked.

Example:


> :img-top: /images/hazards/automates-decision-making.png
> 
> ```{link-button} hazards/automates-decision-making.html
> :text: 
> :classes: stretched-link
> ``` 
> __Automates Decision Making__
> 
> Automated decision making can be hazardous for a number of reasons, and these will be highly dependent on the field in which it is being applied. 
> We should ask ourselves whose decisions are being automated, what automation can bring to the process, and who is benefitted/harmed from this automation. 
> 
> ---

ninadicara avatar Mar 07 '22 18:03 ninadicara