Implement and Test Markdown to Matrix HTML Formatting
-
Task 9: Implement and Test Markdown to Matrix HTML Formatting
- Create a new test suite for markdown formatting logic
(
src/morpheum-bot/format-markdown.test.ts). - Write a test case for converting basic markdown (headings, bold, italics) to Matrix-compatible HTML.
- Write a test case for handling markdown code blocks (fenced and indented).
- Write a test case for converting markdown lists (ordered and unordered) to HTML.
- Implement the core
formatMarkdownfunction that converts markdown text to the HTML format required by Matrix. - Ensure all tests pass and the output is correctly formatted for Matrix messages.
- Create a new test suite for markdown formatting logic
(
Morpheum