[PR #5850] [MERGED] Enhancements: Use remark plugin in the report's Text widget #40594

Closed
opened 2026-04-23 13:26:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5850
Author: @gdufay
Created: 10/4/2025
Status: Merged
Merged: 10/8/2025
Merged by: @matt-fidd

Base: masterHead: card-markdown-plugin


📝 Commits (6)

  • 9caeb76 Add remark plugin to MarkdownCard
  • b3fd565 Generate release note
  • e08b4fd [autofix.ci] apply automated fixes
  • f6e033c Avoid duplicate css code
  • bab7cd1 [autofix.ci] apply automated fixes
  • a3046f2 Merge branch 'master' into card-markdown-plugin

📊 Changes

4 files changed (+91 additions, -65 deletions)

View changed files

📝 packages/desktop-client/src/components/Notes.tsx (+2 -62)
📝 packages/desktop-client/src/components/reports/reports/MarkdownCard.tsx (+16 -3)
📝 packages/desktop-client/src/util/markdown.ts (+67 -0)
upcoming-release-notes/5850.md (+6 -0)

📄 Description

This pull request enhances the Markdown rendering in the report's Text widget by adding support for GitHub Flavored Markdown (GFM) and improving the visual styling of Markdown elements (as in Notes.tsx).

Markdown rendering improvements:

  • Added the remark-gfm plugin and custom plugins (remarkBreaks, sequentialNewlinesPlugin) to the Markdown renderer in MarkdownCard.tsx, enabling support for GFM features such as tables, task lists, and strikethrough. [1] [2]
  • Updated the release notes to document the new support for GFM in the report Text widget.

Styling enhancements:

  • Applied detailed CSS styles to various Markdown elements (paragraphs, lists, blockquotes, code, tables, etc.) in MarkdownCard.tsx for improved readability and consistent appearance in reports.
  • <table> are rendered as display: inline-table to align with text

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5850 **Author:** [@gdufay](https://github.com/gdufay) **Created:** 10/4/2025 **Status:** ✅ Merged **Merged:** 10/8/2025 **Merged by:** [@matt-fidd](https://github.com/matt-fidd) **Base:** `master` ← **Head:** `card-markdown-plugin` --- ### 📝 Commits (6) - [`9caeb76`](https://github.com/actualbudget/actual/commit/9caeb760de694157eb8a652505899c3bd2030580) Add remark plugin to MarkdownCard - [`b3fd565`](https://github.com/actualbudget/actual/commit/b3fd5656f7cceb76dc51bb752a6632d26fe1bd4a) Generate release note - [`e08b4fd`](https://github.com/actualbudget/actual/commit/e08b4fd80cf68ad8bc0e3802037648c87a39ff24) [autofix.ci] apply automated fixes - [`f6e033c`](https://github.com/actualbudget/actual/commit/f6e033c1e2ade0ba7dc46b5f732e3402694802e5) Avoid duplicate css code - [`bab7cd1`](https://github.com/actualbudget/actual/commit/bab7cd113ed4abb5caf1d01f746f55e2164a211a) [autofix.ci] apply automated fixes - [`a3046f2`](https://github.com/actualbudget/actual/commit/a3046f226b4c0a42ecf16b9711eb1042835f14dd) Merge branch 'master' into card-markdown-plugin ### 📊 Changes **4 files changed** (+91 additions, -65 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/Notes.tsx` (+2 -62) 📝 `packages/desktop-client/src/components/reports/reports/MarkdownCard.tsx` (+16 -3) 📝 `packages/desktop-client/src/util/markdown.ts` (+67 -0) ➕ `upcoming-release-notes/5850.md` (+6 -0) </details> ### 📄 Description This pull request enhances the Markdown rendering in the report's Text widget by adding support for GitHub Flavored Markdown (GFM) and improving the visual styling of Markdown elements (as in [Notes.tsx](https://github.com/actualbudget/actual/blob/master/packages/desktop-client/src/components/Notes.tsx)). **Markdown rendering improvements:** * Added the `remark-gfm` plugin and custom plugins (`remarkBreaks`, `sequentialNewlinesPlugin`) to the Markdown renderer in `MarkdownCard.tsx`, enabling support for GFM features such as tables, task lists, and strikethrough. [[1]](diffhunk://#diff-00cabce184727acdacd3c1d7239dc0ff1fd767b82d539b334bb426f0dae98d07R13-R91) [[2]](diffhunk://#diff-00cabce184727acdacd3c1d7239dc0ff1fd767b82d539b334bb426f0dae98d07R210) * Updated the release notes to document the new support for GFM in the report Text widget. **Styling enhancements:** * Applied detailed CSS styles to various Markdown elements (paragraphs, lists, blockquotes, code, tables, etc.) in `MarkdownCard.tsx` for improved readability and consistent appearance in reports. * `<table>` are rendered as `display: inline-table` to align with text --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 13:26:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#40594