Added emphasis italicized text to mdx components

This commit is contained in:
Piotr Janosz
2019-08-15 15:27:02 +02:00
committed by fabioberger
parent 569a165c87
commit 82acc26f97
3 changed files with 13 additions and 2 deletions

View File

@@ -19,11 +19,15 @@ export const links = [
<StepLinks heading="Useful Links" links={links} />
# Text styling examples
This text is normal
**This text is bold**
__This text is italicized__
_This text is italicized_
~~This text is struck through~~
~This text is struck through~
# Sol-coverage

View File

@@ -0,0 +1,5 @@
import styled from 'styled-components';
export const Emphasis = styled.em`
font-style: italic;
`;

View File

@@ -7,6 +7,7 @@ import { MDXProvider } from '@mdx-js/react';
import { Animation } from 'ts/components/docs/mdx/animation';
import { Code } from 'ts/components/docs/mdx/code';
import { CodeTabs } from 'ts/components/docs/mdx/code_tabs';
import { Emphasis } from 'ts/components/docs/mdx/emphasis';
import { H1, H2, H3, H4, H5, H6 } from 'ts/components/docs/mdx/headings';
import { HelpCallout } from 'ts/components/docs/mdx/help_callout';
import { HelpfulCta } from 'ts/components/docs/mdx/helpful_cta';
@@ -146,6 +147,7 @@ export const DocsPage: React.FC<IDocsPageProps> = props => {
const mdxComponents = {
code: Code,
em: Emphasis,
h1: H1,
h2: H2,
h3: H3,