patternfly / patternfly-quickstarts

Repository containing the PatternFly Quick Start extension code
MIT License
15 stars 38 forks source link

Please add the ability to use bold & italic text in notes #211

Closed dayleparker closed 1 year ago

dayleparker commented 1 year ago

We usually use bold text to indicate we are writing about a button or a UI element in the console. We also need this capability to render in notes and other admonitions.

Currently the bold markup renders as:

note-needing-bold

See line 57 in this source yaml for the markup used. (I need to still delete the extra 'NOTE' written in there)

Thanks for your help figuring this out, @jschuler !

jschuler commented 1 year ago

Looks like in packages/module/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx have to wrap content in QuickStartMarkdownView

const mdContent = <QuickStartMarkdownView content={content} />;
<Alert>{mdContent}</Alert>