feat: HTML and rich text to Markdown

Abierto
#180 0 comentarios 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
markdown, react, typescript
Área
frontend, tooling

Línea de trabajo

Start with “Adding a tool” in docs/CODEMAP.md, then inspect the existing Markdown renderer and nearby tools under src/tools/ for the component and test patterns. Implement the conversion in src/tools/<slug>/<slug>.ts with a Vitest test, and register it in src/tools/catalog.ts and src/tools/registry.tsx. Done means rich text or HTML converts to Markdown for the listed elements, pasted scripts are never run, and the tool works offline in light and dark modes at phone width.

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

Descripción

enhancement new tool wave-4

Why

Moving content from Google Docs, a web page or an email into Markdown (READMEs, Notion, Obsidian, dev.to) is tedious by hand.

Replaces: turndown-based upload sites, paid Docs to Markdown add-ons.

Scope

  • Paste rich text (read text/html from the clipboard) or HTML, get Markdown; and the other way via the existing Markdown renderer.
  • Headings, lists, links, bold and italic, code, tables, images.
  • Sanitise input; never run pasted scripts.

Dependency

None. Web APIs only (Clipboard API, DOMParser).

Done when

  • Logic lives in src/tools/<slug>/<slug>.ts with a Vitest test; the component only renders it.
  • One entry in src/tools/catalog.ts (category, audience, keywords, replaces) and one in src/tools/registry.tsx. See "Adding a tool" in docs/CODEMAP.md.
  • Nothing leaves the browser. It works offline once the page has loaded.
  • Works in light and dark mode and at phone width, with no layout shift when its state changes.
Lenguaje dominante
TypeScript
Estrellas
2
Forks
1
Merge medio
2 d 21 h
PR fusionados (30 d)
7

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 ajithakdev/toolglass

Todos los issues de ajithakdev/toolglass

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.