Tables not rendering in HTML
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
Reproduce el informe de test2.md con python3 -m markdown2 test2.md y compara su HTML con el renderizado de mdv mostrado en el issue. Rastrea el comportamiento del parser para los dos ejemplos de tablas, incluida la tabla indentada, y verifica que el HTML resultante coincida con la estructura de tabla prevista sin afectar a los encabezados ni a la lista circundantes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I'm trying to get the following MD document to render proper HTML. The ouput is not as I would expect. The tables are not rendering as I would expect. Let me know if I'm doing something wrong.
This is the input file:
CLEANING
=
| No. | Important Parts for Cleaning | Cleaning Cycle | Ref. Figure
| ---:|---|---|---|
| 1 | Around the hook | Every day | url_for_fig_1
| 2 | Guide rail to the take-up lever | Once a week | url_for_fig_2
| 3 | Around the movable blade and the fixed blade | Once in 3-7 days | url_for_fig_3
| 4 | X-Y drive pulley teeth and timing belt teeth | Once a month
OIL SUPPLY
=
1. Oil supply Use the SWF sewing machine oil (Spindle Oil) or ISO-standard VG18.
2. Manual oil supply
| No. | Where To Oil | Oiling Cycle | Ref. Figure
|---:|---|---|---|
| 1 | Take the bobbin case out of the hook. Feed small1amount of oil on the raceway. | 3-4 times a day | url_for_fig_1
| 2 | Needle bar and needle bar shaft | Once a week | url_for_fig_2
| 3 | Inside the arm | Once a week | url_for_fig_3, url_for_fig_4
| 4 | Guide rail to the take-up lever | Once a week | url_for_fig_5
This is the ouput html after I run $ python3 -m markdown2 test2.md > exportToHTML/test2.html:
<h1>CLEANING</h1>
<p>| No. | Important Parts for Cleaning | Cleaning Cycle | Ref. Figure
| ---:|---|---|---|
| 1 | Around the hook | Every day | url<em>for</em>fig<em>1
| 2 | Guide rail to the take-up lever | Once a week | url</em>for<em>fig</em>2
| 3 | Around the movable blade and the fixed blade | Once in 3-7 days | url<em>for</em>fig_3
| 4 | X-Y drive pulley teeth and timing belt teeth | Once a month</p>
<h1>OIL SUPPLY</h1>
<ol>
<li>Oil supply Use the SWF sewing machine oil (Spindle Oil) or ISO-standard VG18.</li>
<li><p>Manual oil supply</p>
<p>| No. | Where To Oil | Oiling Cycle | Ref. Figure
|---:|---|---|---|
| 1 | Take the bobbin case out of the hook. Feed small1amount of oil on the raceway. | 3-4 times a day | url<em>for</em>fig<em>1
| 2 | Needle bar and needle bar shaft | Once a week | url</em>for<em>fig</em>2
| 3 | Inside the arm | Once a week | url<em>for</em>fig<em>3, url</em>for<em>fig</em>4
| 4 | Guide rail to the take-up lever | Once a week | url<em>for</em>fig_5</p></li>
</ol>
Output from $ mdv test2.md
CLEANING
─── ──────────────────────────────────────────── ──────────────── ─────────────
No. Important Parts for Cleaning Cleaning Cycle Ref. Figure
1 Around the hook Every day url_for_fig_1
2 Guide rail to the take-up lever Once a week url_for_fig_2
3 Around the movable blade and the fixed blade Once in 3-7 days url_for_fig_3
4 X-Y drive pulley teeth and timing belt teeth Once a month
─── ──────────────────────────────────────────── ──────────────── ─────────────
OIL SUPPLY
1. Oil supply Use the SWF sewing machine oil (Spindle Oil) or ISO-standard VG18.
2. Manual oil supply
─── ────────────────────────────────────────────────────────────────────────────── ─────────────── ────────────────────────────
No. Where To Oil Oiling Cycle Ref. Figure
1 Take the bobbin case out of the hook. Feed small1amount of oil on the raceway. 3-4 times a day url_for_fig_1
2 Needle bar and needle bar shaft Once a week url_for_fig_2
3 Inside the arm Once a week url_for_fig_3, url_for_fig_4
4 Guide rail to the take-up lever Once a week url_for_fig_5
─── ────────────────────────────────────────────────────────────────────────────── ─────────────── ────────────────────────────
- Lenguaje dominante
- Python
- Estrellas
- 2.8k
- Forks
- 459
- Merge medio
- 2 d 14 h
- PR fusionados (30 d)
- 5
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 trentm/python-markdown2
-
Add py.typed markerAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
trentm/python-markdown2#696 ·
-
More XSS's in safe modeAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
trentm/python-markdown2#726 ·
-
Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
trentm/python-markdown2#707 ·
-
Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
trentm/python-markdown2#688 · 4 comentarios ·
-
Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
trentm/python-markdown2#679 · 2 comentarios ·
Todos los issues de trentm/python-markdown2
Issues similares
-
pydanty:is-working
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pydantic/pydantic-ai#8843 ·
Los mantenedores suelen responder en 1 día
-
breaking change enhancement server
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
sktime/sktime#11310 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día