Tables not rendering in HTML
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Tái hiện báo cáo từ test2.md bằng python3 -m markdown2 test2.md và so sánh HTML của nó với phần kết xuất mdv được hiển thị trong issue. Theo dõi hành vi của parser đối với hai ví dụ về bảng, bao gồm cả bảng được thụt lề, và xác minh rằng HTML kết quả khớp với cấu trúc bảng dự kiến mà không làm phát sinh hồi quy ở các tiêu đề và danh sách xung quanh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
─── ────────────────────────────────────────────────────────────────────────────── ─────────────── ────────────────────────────
- Ngôn ngữ chính
- Python
- Star
- 2.8k
- Fork
- 459
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của trentm/python-markdown2
-
Add py.typed marker Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
trentm/python-markdown2#696 ·
-
More XSS's in safe mode Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
trentm/python-markdown2#726 ·
-
Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
trentm/python-markdown2#707 ·
-
Bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
trentm/python-markdown2#688 · 4 bình luận ·
-
Bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
trentm/python-markdown2#679 · 2 bình luận ·
Tất cả issue của trentm/python-markdown2
Issue tương tự
-
agent-ready documentation needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Add https://search.jeremyh.xyz/ Đang mởinstance instance add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
searxng/searx-instances#939 · 1 bình luận ·
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100