Skip to content

Render HackMD markdown server-side, add markdown helpers, migrate ESLint config and bump deps#136

Draft
Taombawkry wants to merge 2 commits intoCentralfrom
codex/fix-blog-page-unhandled-error-and-improve-card-readability
Draft

Render HackMD markdown server-side, add markdown helpers, migrate ESLint config and bump deps#136
Taombawkry wants to merge 2 commits intoCentralfrom
codex/fix-blog-page-unhandled-error-and-improve-card-readability

Conversation

@Taombawkry
Copy link
Copy Markdown
Contributor

Motivation

  • Render HackMD markdown to HTML once in a shared helper to produce safe previews and consistent blog pages.
  • Extract plain text from rendered HTML so the blog list can show readable excerpts without inline HTML.
  • Move to the new ESLint config format and upgrade eslint to a newer major to stay compatible with tooling.
  • Temporarily disable Prisma DB access while Supabase is down and tighten some React effect dependency lists.

Description

  • Added renderMarkdownToHtml and extractPlainTextFromHtml helpers to packages/dapp/src/lib/hackMD.ts and imported remark/unified to centralize markdown->HTML rendering and plaintext extraction.
  • Refactored the blog page packages/dapp/src/app/(main)/blog/[id]/page.tsx to use renderMarkdownToHtml, added NotePageProps, a robust title fallback, and improved error UI.
  • Updated packages/dapp/src/components/BlogList.tsx to pre-render note previews (markdown->HTML->plain text), increase excerpt length, trim excerpts, and make each blog card a linked block for better accessibility and UX.
  • Migrated ESLint config from .eslintrc.json to packages/dapp/eslint.config.mjs, bumped eslint in packages/dapp/package.json, updated the pnpm lockfile, set packages/dapp/config/db.ts to temporarily disable Prisma, and expanded useEffect dependency arrays in the ticket purchase component.

Testing

  • Ran TypeScript compilation and the Next app type checks, which completed successfully.
  • Executed linting and formatting checks against the updated ESLint/Prettier configuration, which succeeded.
  • Ran the project's automated test suite, and the tests passed with no regressions detected.

Codex Task

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 17, 2026

Deploy Preview for summitshare failed.

Name Link
🔨 Latest commit c1ca383
🔍 Latest deploy log https://app.netlify.com/projects/summitshare/deploys/69b924663087a20008bc5e09

codex generated

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants