Skip to content

Feat: apply prose typography styling to markdown preview - #16752

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:feat/md-style-0708
Jul 9, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:feat/md-style-0708

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

Feat: apply prose typography styling to markdown preview

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 8, 2026
@dcc123456
dcc123456 requested a review from wangq8 July 8, 2026 11:10
@dcc123456 dcc123456 added 🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration labels Jul 8, 2026
@dcc123456
dcc123456 marked this pull request as draft July 8, 2026 11:10
@dcc123456
dcc123456 marked this pull request as ready for review July 8, 2026 11:10
@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds the @tailwindcss/typography plugin as a dev dependency, registers it in the Tailwind config, and applies prose typography classes to the markdown document preview's rendered output. Also reorders unrelated devDependency entries in package.json.

Changes

Markdown Typography Support

Layer / File(s) Summary
Add typography plugin dependency and config wiring
web/package.json, web/tailwind.config.js
Adds @tailwindcss/typography devDependency, reorders nearby devDependency entries, and registers the plugin in the Tailwind plugins array.
Apply prose styling to markdown preview
web/src/components/document-preview/md/index.tsx
Wraps ReactMarkdown output in an article element with prose typography classes including dark-mode inversion and color overrides.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Poem

A rabbit hopped through lines of code,
Sprinkled "prose" upon the markdown road,
Typography plugin, neat and small,
Dark mode dressed in colors all,
Hop, hop, hooray — the docs look grand! 🐇✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description only repeats the goal and omits the required background/context requested by the template. Expand the Summary with brief background, the problem being solved, and how the markdown preview styling change addresses it.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the main change: adding prose typography styling to the markdown preview.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wangq8
wangq8 merged commit 080dd84 into infiniflow:main Jul 9, 2026
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants