From 3037c423c30caaa21d7e07cc91688d7f01fb22ab Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 7 Jan 2021 15:09:18 +0300 Subject: feat!: deprecate ContentSection --- src/index.tsx | 82 +++++++++++++++++++++++++++----------------------------- src/lib/index.ts | 4 ++- 2 files changed, 43 insertions(+), 43 deletions(-) (limited to 'src') diff --git a/src/index.tsx b/src/index.tsx index 63f7938..9a80262 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -9,7 +9,7 @@ import { import { Benzin, Markdown, - ContentSection, + Heading, } from './lib'; import Header from './demo/Header/Header'; @@ -55,24 +55,23 @@ const CustomPage: React.FC = () => { return ( <> - -

- This should be a link to a valid markdown file. Response should give the file contents. - If you copy README file from GitHub, make sure you provide link to raw view. -

-

- -

- -
+ Render custom markdown document +

+ This should be a link to a valid markdown file. Response should give the file contents. + If you copy README file from GitHub, make sure you provide link to raw view. +

+

+ +

+ ); @@ -91,29 +90,28 @@ const LivePreviewPage: React.FC = ({ setLivePreviewData }) => { return ( <> - -

- Start typing and see your text rendered on the left window! - You can find the list of all Markdown features - {' '} - - here - - . (some of them are yet in progress). - We recommend starting with # Header. -

-

- -

-
+ Markdown live preview +

+ Start typing and see your text rendered on the left window! + You can find the list of all Markdown features + {' '} + + here + + . (some of them are yet in progress). + We recommend starting with # Header. +

+

+ +

); }; diff --git a/src/lib/index.ts b/src/lib/index.ts index 545e6f8..2e6dd9e 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,3 +1,5 @@ -export { default as ContentSection } from './ContentSection/ContentSection'; export { default as Benzin } from './Benzin/Benzin'; export { default as Markdown } from './Markdown/Markdown'; +export { default as CodeBlock } from './Markdown/CodeBlock'; +export { default as InlineCode } from './Markdown/InlineCode'; +export { default as Heading } from './Markdown/Heading'; -- cgit v1.2.3