Markdown output loses backslashes before pipes and splits rows on carriage returns
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
Línea de trabajo
Empieza con runner.Result.MarkdownRow y la implementación de escapeMarkdown mencionada en el issue; la reproducción de Go proporcionada prueba ambos casos sin solicitudes HTTP. Comprueba cómo se manejan las barras invertidas y LF, luego ejecuta la reproducción y renderiza su salida como una tabla Markdown de GitHub. Se considerará terminado cuando se conserve la barra invertida literal y CR, CRLF y LF dentro de las celdas ya no dividan un resultado en filas adicionales.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
httpx version:
Current dev, 9b6d8077ef7afa119dd6d28eeaf78a6556557acc (Linux amd64, Go 1.27.0). The same escapeMarkdown implementation is in v1.12.0.
Current Behavior:
Markdown output loses literal backslashes before a pipe. A carriage return inside a field can also split one result into two table rows.
For example, a response with title left\|right and <meta name="generator" content="left right"> produces a title cell with two backslashes before the pipe and leaves the generator's carriage return intact. GitHub's Markdown renderer displays the title as left|right and makes an extra row at the carriage return. Later columns no longer line up with their headings.
Expected Behavior:
Keep the literal backslash in the title and flatten CR/CRLF as well as LF inside table cells, so each result stays on one row.
Steps To Reproduce:
This reproduces the output formatting without making any HTTP requests. From a checkout of current dev, save this as /tmp/httpx-markdown-repro.go and run go run /tmp/httpx-markdown-repro.go:
package main
import (
"fmt"
"github.com/projectdiscovery/httpx/runner"
)
func main() {
r := runner.Result{
Title: "left\\|right",
Generator: "left\rright",
StatusCode: 200,
}
fmt.Print(r.MarkdownHeader(), r.MarkdownRow(nil))
}
Render the output as a GitHub Markdown table. The title loses its backslash, and the generator value starts a second row.
Anything else:
I also reproduced this through the CLI against a loopback-only Python HTTP server serving the two fields. Escaping existing backslashes and normalizing CRLF/CR before writing the cell fixes both cases locally. No external targets are needed.
- Lenguaje dominante
- Go
- Estrellas
- 10.6k
- Forks
- 1.1k
- Merge medio
- 22 h 16 min
- PR fusionados (30 d)
- 24
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 projectdiscovery/httpx
-
-p range keeps http&https for every port after the first one that merges two schemesPosiblemente ocupada @dwisiswant0 la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
projectdiscovery/httpx#2732 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Headless screenshots are slow and can capture half-rendered SPAsPosiblemente ocupada @Mzack9999 la tomó hace 93 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
projectdiscovery/httpx#2646 ·
Los mantenedores suelen responder en 1 día
-
Add a local mirror of the hugging face model JSONQuizá libre de nuevo @dogancanbakir la tomó hace 69 días y no hay ningún pull request abierto. AbiertoType: Enhancement
projectdiscovery/httpx#2568 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
httpx --screenshot not working on AlpinePosiblemente ocupada @Mzack9999 la tomó hace 6 días. AbiertoType: Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 20/100
projectdiscovery/httpx#2193 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de projectdiscovery/httpx
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
charmbracelet/huh#849 ·
-
help wanted stage/010-actionable
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
hivecommons/hive#18458 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
suzuki-shunsuke/tfcmt#2636 ·
Los mantenedores suelen responder en 1 día
-
ui: links opened in a new tab omit the public URL path prefix (e.g. rotations on a schedule's assignments page)Posiblemente ocupada @dginther la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Containerpak/cpak#93 ·