> ## Documentation Index
> Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Markdown Text – Code

> MarkdownText renders markdown content with GitHub Flavored Markdown support.

> [!WARNING]
>
> Atlas is deprecated. Use [AI Kit](https://anvil.servicetitan.com/docs/building-agentic-experiences) for any new Atlas experiences.

> [tab] Implementation
>
> ext-atlas-markdown-text-demo
>
> [StackBlitz demo](https://stackblitz.com/github/servicetitan/anvil2-docs-live-code/tree/main/examples/ext-atlas-markdown-text-demo?file=src/App.tsx)
>
> ```tsx lines expandable theme={null}
> import { MarkdownText } from "@servicetitan/anvil2-ext-atlas";
> import { Flex, Text } from "@servicetitan/anvil2";
>
> function App() {
>   return (
>     <Flex direction="column" gap={4}>
>       <Flex direction="column" gap={2}>
>         <Text size="medium" variant="eyebrow">
>           Simple Text
>         </Text>
>         <MarkdownText text="This is plain text." />
>       </Flex>
>
>       <Flex direction="column" gap={2}>
>         <Text size="medium" variant="eyebrow">
>           Bold and Italic
>         </Text>
>         <MarkdownText text="This is **bold** and this is *italic*." />
>       </Flex>
>
>       <Flex direction="column" gap={2}>
>         <Text size="medium" variant="eyebrow">
>           Code Block
>         </Text>
>         <MarkdownText
>           text={`\`\`\`javascript\nconst hello = 'world';\n\`\`\``}
>         />
>       </Flex>
>     </Flex>
>   );
> }
>
> export default App;
> ```
>
> ## Common Examples
>
> ### Basic Usage
>
> Render markdown content:
>
> ```tsx theme={null}
> import { MarkdownText } from "@servicetitan/anvil2-ext-atlas";
>
> function MarkdownContent() {
>   const content = `
> # Welcome
>
> Here are some **important** points:
>
> 1. First item
> 2. Second item
> 3. Third item
>
> Visit [our website](https://example.com) for more info.
>   `;
>
>   return <MarkdownText text={content} />;
> }
> ```
>
> ### Dynamic Content
>
> Render markdown from API response:
>
> ```tsx theme={null}
> import { MarkdownText } from "@servicetitan/anvil2-ext-atlas";
>
> function DynamicMarkdown({ content }) {
>   return <MarkdownText text={content} />;
> }
> ```
>
> ### With Tables
>
> Render GFM tables:
>
> ```tsx theme={null}
> import { MarkdownText } from "@servicetitan/anvil2-ext-atlas";
>
> function TableContent() {
>   const table = `
> | Service | Price |
> | ------- | ----- |
> | HVAC    | $150  |
> | Plumbing| $120  |
>   `;
>
>   return <MarkdownText text={table} />;
> }
> ```

> [tab] MarkdownText API
>
> ```tsx theme={null}
> <MarkdownText text="**Bold** and *italic*" />
> ```
>
> ## `MarkdownText` Props
>
> **text** `string` *required*
>
> The markdown text to render.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.