Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
  • Typography
  • Accessibility
  • Contrib
    • AccordionNext
    • ClickableCard
    • CollapsibleSection
    • HighlightBox
    • LineBarChart
    • ListItemNext
    • Markdown
    • MultiStepNavigation
    • Number
    • PhoneNumberInput
    • PromoCard
    • RatingWithStars
    • ScreenNext
    • SegmentedControl
    • SortableColumnHeader
    • TabListNext
    • TableHeader
    • Tip
    • UniversalEmoji
  • Deprecated
  • Contrib
  • Markdown

Markdown

Renders a markdown string through Murray typography. Raw HTML in it is sanitised, so it is safe for text a member or an admin wrote. GitHub-flavoured markdown, emoji shortcodes and single-newline breaks are each opt-in.

Health
Component health
Source
View on Github
Playground
No Example
Accessibility
unknown
Platform
Web
Contrib Component
Markdown is a community contributed component. We encourage its usage but it might not give the same level of robustness (accessibility, tests, ...) than core Murray components.
  • Overview
  • Props

Markdown props

NameTypeDefault ValueDescriptionUsage count
enableRemarkBreaksbooleanundefined
enableRemarkEmojibooleanundefined
enableRemarkGfmbooleanundefined
linkTargetstringundefined
paragraphColor
4 possibilitiesundefined`$${string}`Variable<any>OpaqueColorValue
paragraphSize
9 possibilitiesundefinednumber"$text100""$text200""$text300""$text400""$text500"Variable<any>Partial<Record<"$xs" | "$ltVs" | "$vs" | "$ltSm" | "$sm" | "$ltMd" | "$md" | "$ltLg" | "$lg" | "$ltXl" | "$xl" | "$ltXxl" | "$xxl", TextSize>>
rehypePluginsPluggableListnullundefinedList of rehype plugins to use.
strongColor
4 possibilitiesundefined`$${string}`Variable<any>OpaqueColorValue
strongSize
8 possibilitiesundefinednumber"$text100""$text200""$text300""$text400""$text500"Variable<any>
textColor
94 possibilities"pink500""pink700""pink900""grey200""grey500""grey600""blue700""grey50""grey100""grey200HighContrast""grey300""grey400""grey600HighContrast""grey700""grey800""grey900""blue50""blue100""blue300""blue500""blue900""teal50""teal100""teal300""teal500""teal700""teal900""pink50""pink100""pink300""pink500HighContrast""pink700HighContrast""pink900HighContrast""yellow50""yellow100""yellow300""yellow500""yellow700""whiteAlpha100""whiteAlpha300""whiteAlpha400""whiteAlpha500""whiteAlpha600""whiteAlpha700""whiteAlpha800""whiteAlpha900""white""black""fluoYellow""cream""lightCream""blue""grey""pink""transparent""negative""warning""positive""action""action50""action100""action300""action500""action700""action900""positive50""positive100""positive300""positive500""positive700""positive900""warning50""warning100""warning300""warning500""warning500HighContrast""warning700""warning700HighContrast""warning900""warning900HighContrast""negative50""negative100""negative300""negative500""negative500HighContrast""negative700""negative700HighContrast""negative900""negative900HighContrast""brand""facebook""twitter""linkedin"undefined
textSize
12 possibilitiesundefined"size12""size14""size16""size18""size24""size32""size40""size56""size64""size80"Responsive<"size12" | "size14" | "size16" | "size18" | "size24" | "size32" | "size40" | "size56" | "size64" | "size80">

Undocumented props

NameTypeDefault ValueDescriptionUsage count
componentsany
Edit this page
Previous
ListItemNext
Next
MultiStepNavigation