5
5
*/
6
6
7
7
import { Button } from "@podkit/buttons/Button" ;
8
- import { Heading2 , Subheading } from "@podkit/typography/Headings" ;
8
+ import { Heading1 , Heading2 , Heading3 , Subheading } from "@podkit/typography/Headings" ;
9
9
import Markdown from "react-markdown" ;
10
10
import { useOrgSettingsQuery } from "../../data/organizations/org-settings-query" ;
11
11
import { gitpodWelcomeSubheading } from "./WelcomeMessageConfigurationField" ;
@@ -32,18 +32,22 @@ export const WelcomeMessagePreview = ({ disabled, setWelcomeMessageEditorOpen, h
32
32
</ div >
33
33
< Subheading > { gitpodWelcomeSubheading } </ Subheading >
34
34
{ welcomeMessage && (
35
- < div className = "p-8 my-4 bg-pk-surface-secondary text-pk-content-primary rounded-xl flex flex-col gap-5 items-center justify-center" >
35
+ < article className = "p-8 my-4 bg-pk-surface-secondary text-pk-content-primary rounded-xl flex flex-col gap-5 items-center justify-center" >
36
36
{ avatarUrl && < img src = { avatarUrl } alt = "" className = "w-12 h-12 rounded-full" /> }
37
37
< Markdown
38
38
className = "space-y-4 text-center bg-pk-surface-secondary"
39
39
components = { {
40
40
ul : ( { children } ) => < ul className = "list-disc list-inside" > { children } </ ul > ,
41
41
ol : ( { children } ) => < ol className = "list-decimal list-inside" > { children } </ ol > ,
42
+ img : ( { src, alt } ) => < img src = { src } alt = { alt } className = "w-full rounded-lg" /> ,
43
+ h1 : ( { children } ) => < Heading1 className = "text-left text-2xl" > { children } </ Heading1 > ,
44
+ h2 : ( { children } ) => < Heading2 className = "text-left text-xl" > { children } </ Heading2 > ,
45
+ h3 : ( { children } ) => < Heading3 className = "text-left text-lg" > { children } </ Heading3 > ,
42
46
} }
43
47
>
44
48
{ welcomeMessage }
45
49
</ Markdown >
46
- </ div >
50
+ </ article >
47
51
) }
48
52
</ div >
49
53
) ;
0 commit comments