microsoft / microsoft/BotFramework-WebChat

React Native: Implement Markdown

Open
#3,329 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-react-native backlog feature-request p0
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Background

Today, HTML version of Web Chat has this function. It returns a HTML string.

function renderMarkdown(markdown: string): string;

We might need/want to change this signature so it returns a React element.

function renderMarkdown(markdown: string, onNavigate: EventHandler): React.Element;

(The signature is not finalized. In HTML, we will render <a target="_blank"> and let the browser handle it. In React Native, we might render something else, and handle window.open differently than in HTML.)

When some links are clicked, we will need to customize the navigation experience:

  • window.open can be overridden
  • Some links need to handle programmatically, e.g. Send failed, [#retry](retry)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files or tests; start by locating the existing HTML renderMarkdown implementation and the React Native rendering path. Clarify the final return signature and navigation behavior, including window.open overrides and programmatic links such as retry, then define completion around rendered Markdown and link handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.