Skip to content

Commit

Permalink
Process markup in deprecation messages.
Browse files Browse the repository at this point in the history
No-Issue
Signed-off-by: Felix Fontein <[email protected]>
  • Loading branch information
felixfontein committed Jan 21, 2025
1 parent 07cc179 commit 1bd4611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/5416.bug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Collection documentation: process markup in deprecation messages.
4 changes: 2 additions & 2 deletions src/components/render-plugin-doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ export class RenderPluginDoc extends Component<IProps, IState> {

<div>
<b>{t`Why:`}</b>{' '}
{deprecated.why ? doc.deprecated.why : t`No reason specified.`}
{deprecated.why ? this.applyDocFormatters(doc.deprecated.why) : t`No reason specified.`}
</div>

<div>
<b>{t`Alternative:`}</b>{' '}
{deprecated.alternative
? doc.deprecated.alternative
? this.applyDocFormatters(doc.deprecated.alternative)
: t`No alternatives specified.`}
</div>
</>
Expand Down

0 comments on commit 1bd4611

Please sign in to comment.