Support Markdown tables in notes and guides
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- next.js, react, typescript
- Área
- content
Línea de trabajo
Start with SAFE_MDX_OPTIONS in src/lib/mdx-safe.ts and NoteBody in src/components/note-body.tsx to trace how notes and guides are rendered and sanitized. Then review src/components/mdx-components.tsx, src/lib/mdx-safe.test.ts, and the content guide. Done when tables compile, raw HTML in cells remains rejected, wide tables scroll within their container on phones, and the guide documents the syntax.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
Notes and guides cannot use Markdown tables. The content guide says: "Tables need a plugin that is not installed yet, so avoid them for now." Tables are useful in study notes, for example to compare data structures or complexity.
Where it happens
Notes (/dashboard/...) and guides (/guides/...) render through NoteBody in src/components/note-body.tsx, using SAFE_MDX_OPTIONS from src/lib/mdx-safe.ts. That file also rejects raw HTML, JSX, and {expressions} for safety.
Suggested approach
- Add
remark-gfmtoremarkPluginsinSAFE_MDX_OPTIONS, keepingremarkRejectJsx. - Style tables in
src/components/mdx-components.tsx. Wide tables must scroll inside their own container on a phone instead of widening the page. - Add tests to
src/lib/mdx-safe.test.ts: a table compiles, and raw HTML inside a table cell is still rejected. - Update the content guide to explain table syntax and remove the "avoid tables" line.
remark-gfm also enables strikethrough, task lists, footnotes, and autolinks. Mention in the pull request which of these you checked.
Check your change
npm run lint
npm run typecheck
npm test
npm run build
npm run e2e
Please comment with your plan before starting, since this touches the content security pipeline.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 8 h 58 min
- PR fusionados (30 d)
- 37
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de procoderji-com/procoderji
-
area:frontend bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
procoderji-com/procoderji#104 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
procoderji-com/procoderji#36 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
procoderji-com/procoderji#35 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 79/100
procoderji-com/procoderji#34 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
procoderji-com/procoderji#33 ·
Los mantenedores suelen responder en 1 día
Todos los issues de procoderji-com/procoderji
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug platform-android
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Termix-SSH/Mobile#146 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
devswha/herdr-web-ui#3875 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
area: runtime chore cli consistency dependencies developer-experience difficulty: easy discovery documentation enhancement good first issue help wanted hygiene json-output packaging priority: P3 tests version
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día