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.
Implementation
MarkdownText API
Common Examples
Basic Usage
Render markdown content: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:import { MarkdownText } from "@servicetitan/anvil2-ext-atlas";
function DynamicMarkdown({ content }) {
return <MarkdownText text={content} />;
}
With Tables
Render GFM tables:import { MarkdownText } from "@servicetitan/anvil2-ext-atlas";
function TableContent() {
const table = `
| Service | Price |
| ------- | ----- |
| HVAC | $150 |
| Plumbing| $120 |
`;
return <MarkdownText text={table} />;
}
<MarkdownText text="**Bold** and *italic*" />
MarkdownText Props
The markdown text to render.