microsoft / microsoft/BotFramework-WebChat
React Native: Implement Markdown
Nobody has claimed this yet.
- 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.opencan be overridden- Some links need to handle programmatically, e.g.
Send failed, [#retry](retry)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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