Skip to content

Commit

Permalink
Merge pull request #2646 from owid/markdown-explorer
Browse files Browse the repository at this point in the history
🐛 Use MarkdownTextWrap in explorer subtitle
  • Loading branch information
ikesau authored Sep 22, 2023
2 parents aa8a886 + b963d7e commit 0c4fa9a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions explorer/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
isInIFrame,
keyBy,
keyMap,
MarkdownTextWrap,
omitUndefinedValues,
PromiseCache,
PromiseSwitcher,
Expand Down Expand Up @@ -746,12 +747,12 @@ export class Explorer
<div className="ExplorerTitle">
{this.explorerProgram.explorerTitle}
</div>
<div
className="ExplorerSubtitle"
dangerouslySetInnerHTML={{
__html: this.explorerProgram.explorerSubtitle || "",
}}
></div>
<div className="ExplorerSubtitle">
<MarkdownTextWrap
fontSize={12}
text={this.explorerProgram.explorerSubtitle || ""}
/>
</div>
</div>
)
}
Expand Down

0 comments on commit 0c4fa9a

Please sign in to comment.