Whitelist something that lets Jekyll render ```mermaidJS by default so the same markdown renders the same mermaidJS image
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- github, jekyll, ruby
- Bereich
- build-system, web-dev
Rechercherichtung
Beginne damit, das Verhalten in rabestro.github.io/test-mermaid und rabestro/test-mermaid zu reproduzieren, und untersuche anschließend die Jekyll-Rendering-Pipeline von pages-gem und ihre Plugin-Whitelist. Vergleiche die Mermaid-Verarbeitung von GitHub Markdown mit der Ausgabe von GitHub Pages. Als abgeschlossen gilt die Aufgabe, wenn das standardmäßige Mermaid-Beispiel mit fenced Code korrekt über den standardmäßigen GitHub-Pages-Flow gerendert wird, ohne zusätzliche Einrichtung durch Benutzer.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Ruby
- Sterne
- 1.9k
- Forks
- 361
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/pages-gem
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
-
Serving SQLite database files with sql.js-httpvfs broken due to gzip encoding on HEAD requestsOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 5/100
-
index.htmlOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 5/100
Alle Issues in github/pages-gem
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
jetrockets/jet_ui#47 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
FreeCAD/homebrew-freecad#870 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Messages with a markdown image that has a relative or malformed URL throw TypeError: Invalid URLOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag