Whitelist something that lets Jekyll render ```mermaidJS by default so the same markdown renders the same mermaidJS image
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github, jekyll, ruby
- Lĩnh vực
- build-system, web-dev
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện hành vi trong rabestro.github.io/test-mermaid và rabestro/test-mermaid, sau đó kiểm tra pipeline kết xuất Jekyll của pages-gem và danh sách cho phép plugin của nó. So sánh cách GitHub Markdown xử lý Mermaid với đầu ra của GitHub Pages. Được xem là hoàn tất khi ví dụ Mermaid fenced tiêu chuẩn được kết xuất chính xác thông qua luồng GitHub Pages mặc định mà không cần người dùng thiết lập thêm.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm in good faith tracking this as a CRITICAL ACCESSABILITY ISSUE for people in the development community who are visually disabled and use mermaidjs to communicate visual ideas and want to use Github Pages.
Worse, GH stated they supported this in a big blog post, and they clearly don't, because I cant copy a mermaidJS markdown file and have it show up on GitHub Pages using only the default GHPages flow. If this is the wrong place, let me know and I will simply refile this bug as needed to assist in good faith.
This fix needs to be on the GitHub side to mitigate duplicated effort and to support the best accessibility
This issue affects
- Everybody on github using GitHub Pages who read https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/
- The blind/disabled development community who wants to use the "standard" mermaid support on GitHub on GitHub Pages to communicate visual ideas.
Issues
- The site generated by GitHub Pages does not render mermaidJS by default, despite the fact that GH has publicly and falsely declared that its supported across the entire website for all markdown files per https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/ when that is clearly not the case.
- The jekyll rendering pipeline used by GH pages actively blocks all non-whitelisted plugins from being loaded.
- The jekyll rendering pipeline used by GH pages does not include a plugin in the whitelist that can be used to render mermaidJS.
- The jekyll rendering pipeline used by GH Pages also corrupts/mis-renders standard GitHub "```mermaidjs" markdown into "mermaid-language" code html blocks
- If Github Pages is about ease of use, and if the expectation is that the markdown rendering of GitHub should work on GitHub Pages, that's not happening.
What did you do (e.g., steps to reproduce)
Tried to use standard github markdown with the ```mermaid tag as described on https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/
What did you expect to happen?
I expected it to render mermaid with no other work from me.
What happened instead?
MermaidJS is not rendered at all and the Jykll system is also parsing it wrong and rendering the wrong thing.
Additional information
https://rabestro.github.io/test-mermaid/ and https://github.com/rabestro/test-mermaid shows the issue perfectly
Additional Repos showing this problem:
I also am seeing this on my own github.io
- Ngôn ngữ chính
- Ruby
- Star
- 1.9k
- Fork
- 363
- 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
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 90/100
Maintainer thường phản hồi trong vòng 3 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jetrockets/jet_ui#47 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/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 76/100
FreeCAD/homebrew-freecad#870 ·
Maintainer thường phản hồi trong vòng 1 ngày