Solved

How to add admonitions to guru cards?

  • 17 November 2022
  • 2 replies
  • 56 views

What is the best way to add admonitions to our Guru pages? ie: Warning, Note, Hint text block etc? Guru text formatting doesn't seem to have such a concept. :-( Compare that to AsciiDoc for example. Any workarounds for this missing documentation feature?

Also, if there is no suitable workaround, could such functionality be added to Guru text formatting? Admonitions are a common thing in documentation.

icon

Best answer by David MacVicar 17 November 2022, 22:53

View original

This topic has been closed for comments

2 replies

Userlevel 2
Badge +1

I think you could use a markdown block to do this (at least manually?)

Previewing the markdown

 

For example I used:

<div style="background: #FCE1E1; border: 1px dashed #FB3728; border-radius: 2px; padding: 1rem; margin-bottom: 1rem;"><span style="font-weight: bold; color: rgb(251, 55, 40); padding-right: 0.5rem; font-size: 17px; font-family: source-sans-pro, sans-serif;">! Warning</span><span style="font-size: 17px; font-family: source-sans-pro, sans-serif;">&nbsp;YOUR TEXT HERE</span></div>

You would change your font and size accordingly!

Userlevel 3
Badge

I think most folks use markdown. We put them in our style guide so our employees can copy and paste and just replace the text. https://app.getguru.com/card/RcAndBGc