now handling italic text

pull/2/head
Michael Ochmann 3 years ago
parent 2fd2f793f1
commit 52b09bba59
  1. 2
      src/ui/src/components/Slide.js
  2. 2
      src/ui/src/components/SlideItem.js

@ -4,7 +4,7 @@ import SlideItem from "./SlideItem";
const Slide = ({data, ...props}) => {
return (
<article className="slide" {...props}>
<article className={`slide${data?.title ? " title" : ""}`} {...props}>
{data?.content.map((item, index) =>
<SlideItem item={item} key={index} />
)}

@ -29,6 +29,8 @@ const SlideItem = ({item}) => {
return <SyntaxHighlighter style={monokai} language={item.lang}>{item.text}</SyntaxHighlighter>
case "strong":
return <b><Children items={item.tokens} /></b>
case "em":
return <i><Children items={item.tokens} /></i>
case "text":
return <>{item.text}</>
default:

Loading…
Cancel
Save