a2ui-project / a2ui-project/a2ui

Consider removing the `variant` property on `Text` in favor of just using Markdown

Abierto
#999 2 comentarios 1 reacción 0 asignados Ver en GitHub
P2 sprint ready type: feature/enhancement
Lenguaje dominante
TypeScript
Estrellas
16.4k
Forks
1.3k
Merge medio
2 d 13 h
PR fusionados (30 d)
134

Descripción

Currently, Markdown allows you to specify H1, H2, H3 etc through `# Heading 1` etc, but we also redundantly provide a `variant` parameter for this.

How about we remove this redundancy? It's awkward to implement also. What if we have a `h1` variant Text, with `#### Subtitle` in it? Which level is that heading?

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Look for the Text component definition, likely in a file like Text.tsx or a components directory. Identify where the variant property is used and how it interacts with Markdown parsing. Check for any tests related to Text or heading rendering to understand the expected behavior. The goal is to remove the variant property while ensuring Markdown headings (#, ##, etc.) are correctly rendered.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
markdown, typescript
Área
frontend
Tipo de issue
Refactorización
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bien especificado
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.