Skip to main content

REFERENCE

SDK Demos

How to use @asgard-js/core and @asgard-js/react, with demos you can try on the page.

Markdown

The SDK renders markdown content returned by the bot provider — including code blocks with syntax highlighting, lists, tables, and inline formatting. This demo connects to a markdown-enabled bot provider so you can try it live.

  1. Code Example​

    <Chatbot
    title="Markdown Bot"
    config={{ botProviderEndpoint: "https://..." }}
    customChannelId="my-channel"
    />

    The SDK uses streamdown for streaming markdown rendering. MESSAGE_DELTA events accumulate into typingText in real time, and MESSAGE_COMPLETE writes the final message.text. No extra configuration needed.

  2. Supported Formats​

    FormatSyntax
    Headings# h1 through ###### h6
    Bold / Italic**bold** / *italic*
    CodeInline `code` + fenced ```lang (with syntax highlight)
    ListsOrdered 1. / Unordered -
    TablesGFM table syntax
    Links / Images[text](url) / ![alt](url)
    LaTeX$inline$ / $$block$$
  3. Further Reading​

    For the full spec of message text (Markdown / LaTeX), see the Asgard developer docs:

Ready to get started?

Want to see how Asgard fits your team? Talk to us.

Contact us