diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-22 19:56:12 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-22 19:56:12 +0800 |
commit | 46b7fecafe283e814e2088373ec857747e4cf314 (patch) | |
tree | d9cbf5cf571231470b568ece2f051557e2b9e08b /packages/react-shared/src/components/markdown_section.tsx | |
parent | e1341bc6d957d70a386c858cbdb64af5f284fd07 (diff) | |
download | dexon-0x-contracts-46b7fecafe283e814e2088373ec857747e4cf314.tar dexon-0x-contracts-46b7fecafe283e814e2088373ec857747e4cf314.tar.gz dexon-0x-contracts-46b7fecafe283e814e2088373ec857747e4cf314.tar.bz2 dexon-0x-contracts-46b7fecafe283e814e2088373ec857747e4cf314.tar.lz dexon-0x-contracts-46b7fecafe283e814e2088373ec857747e4cf314.tar.xz dexon-0x-contracts-46b7fecafe283e814e2088373ec857747e4cf314.tar.zst dexon-0x-contracts-46b7fecafe283e814e2088373ec857747e4cf314.zip |
Create helper function for converting dashes names for display
Diffstat (limited to 'packages/react-shared/src/components/markdown_section.tsx')
-rw-r--r-- | packages/react-shared/src/components/markdown_section.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/react-shared/src/components/markdown_section.tsx b/packages/react-shared/src/components/markdown_section.tsx index e895afd2a..449e8a045 100644 --- a/packages/react-shared/src/components/markdown_section.tsx +++ b/packages/react-shared/src/components/markdown_section.tsx @@ -43,7 +43,7 @@ export class MarkdownSection extends React.Component<MarkdownSectionProps, Markd const { sectionName, markdownContent, headerSize, githubLink } = this.props as PropsWithDefaults; const id = utils.getIdFromName(sectionName); - const finalSectionName = sectionName.replace(/-/g, ' '); + const finalSectionName = utils.convertDashesToSpaces(sectionName); return ( <div className="md-px1 sm-px2 overflow-hidden" |