[FEATURE]: Make it easier to copy selected formulas as LaTeX code in the Web UI

Abierto
#65,375 1 comentario 0 reacciones 0 asignados Ver en GitHub

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
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Start in the Web UI's markdown/message rendering path where math is rendered with KaTeX, and find where fenced latex/math code blocks get their copy button so you can see why it is dropped for formulas. Compare against KaTeX's copy-tex extension, which annotates rendered output with the original source. Done means selecting one or several rendered formulas and pasting yields their LaTeX source, and the code-block copy button survives. Note the reporter offers to open the PR himself.

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

Descripción

area/web type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

I often copy formulas into my notes. Right now I have to extract the LaTeX from the whole reply or switch to the TUI. I'd like to select all or part of a rendered formula in the Web UI and copy its complete LaTeX source.

Cherry Studio already supports this via KaTeX's copy-tex extension. A review comment on #64380 also noted that latex and math code blocks lose their copy button when rendered as formulas.

The local patch shown below preserves and reads KaTeX's source annotations, which also fixes #54769. If this is welcome, I can open a single PR or split the annotation fix and the new copy behavior into two PRs.

Copying one formula
Copying one formula as LaTeX
Copying text and multiple formulas
Copying text and multiple formulas as LaTeX
Lenguaje dominante
TypeScript
Estrellas
227k
Forks
30.7k
Merge medio
3 h 57 min
PR fusionados (30 d)
484

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de anomalyco/opencode

Todos los issues de anomalyco/opencode

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.