Markdown parser and settings appear to be outdated locally
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- jekyll, ruby
- Lĩnh vực
- build-system, tooling
Hướng nghiên cứu
Bắt đầu bằng việc tái tạo index.md và so sánh đầu ra cục bộ với đầu ra GitHub Pages dự kiến. Xem xét cách gem cấu hình trình phân tích Markdown và các thiết lập của Jekyll, sử dụng workaround CommonMarkGhPages làm mục tiêu. Hoàn tất nghĩa là việc kết xuất cục bộ khớp với HTML được hiển thị, bao gồm Markdown bên trong HTML và dấu ba chấm thông minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Before submitting an issue, please be sure to
- Read the contributing instructions
- Update to the latest Gem version (run
bundle update github-pages)
This issue affects
- The site generated by GitHub Pages
- Building sites locally
The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.
What did you do (e.g., steps to reproduce)
index.md
<section>
# Heading
More...
</section>
What did you expect to happen?
Jekyll should use the same markdown parser and settings locally as GitHub Pages.
<section>
<h1 id="heading">Heading</h1>
<p>More…</p>
</section>
What happened instead?
Jekyll seems to incorrectly use its own default Kramdown parser instead of GFM CommonMark, and as a result cannot handle Markdown in HTML or smart ellipses.
<section>
# Heading
More...
</section>
Additional information
- Link to the source repo (if applicable): https://github.com/nickmccurdy/eslint-config-modern/tree/2699a9c01e68535a3a087759cb11e5f82905db88/docs
As a workaround, I guessed at what GitHub's Jekyll config was and ended up using this, which works the same with this example both locally and on GitHub Pages:
markdown: CommonMarkGhPages
commonmark:
options: ["SMART"]
However, I think the gem should replicate this functionality automatically to keep local testing consistent with GitHub. I'm also not sure if I'm missing other options that may differ in both environments.
- Ngôn ngữ chính
- Ruby
- Star
- 1.9k
- Fork
- 361
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
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 github/pages-gem
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Error when building docker imageĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
-
index.htmlĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
Tất cả issue của github/pages-gem
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
solana-foundation/pay-kit#341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
TheOdinProject/curriculum#31427 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mail processor needs SSL flagĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
cyclestreets/cyclescape#1107 · 1 reaction ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày