Markdown handling & marked script handling
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript
- Bereich
- frontend, performance
Rechercherichtung
Beginne damit, den Rendering-Pfad fileData.extension === 'md', den marked-CDN-Verweis und die vorhandene Prettier-Formatierung/Quellcodeverwaltung zu lokalisieren. Vergleiche die vorgeschlagenen Optionen für die Markdown-Anzeige und die Änderungen am Laden von Skripten; als abgeschlossen sollte eine vereinbarte Source-/Formatierungsdarstellung gelten und bestätigt sein, dass die Markdown-Verarbeitung keine unnötigen Ladekosten mehr verursacht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
The way runpkg currently works, viewing a markdown (.md) file shows us the formatted version, thanks to the marked markdown parser.
Problems:
- Currently there's no way to view the source of a markdown file on
runpkg. We just render the formatted version iffileData.extension === 'md'and there's no way to disable this. - In running some lighthouse performance tests, it does seem that - although it's not the heaviest package - loading this script has a noticeable impact on performance metrics like TTI. This seems an unnecessary price to pay when it's likely that most pages viewed are not markdown.
- Bonus: is there a particular reason we're using
jsdelivroverunpkgto serve this script? If not, it seems in the spirit of this project to move from usinghttps://cdn.jsdelivr.net/npm/marked/marked.min.jstohttps://unpkg.com/[email protected]/marked.min.jsorhttps://unpkg.com/marked/marked.min.js
Proposals:
- Make formatted/source view similar to what we do for prettier. My thoughts would be to a) add a checkbox to toggle formatted/source view, b) add a button similar to the prettier formatting button to format markdown, or c) change the prettier button to be a "format markdown" button when viewing markdown (the same as b, but saving space with the downside of no markdown prettification)
- If we tackle proposal 1, we can then
defer/asyncthe script - Move to using
https://unpkg.com/[email protected]/marked.min.js
Thoughts?
- Vorherrschende Sprache
- JavaScript
- Sterne
- 307
- Forks
- 9
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 FormidableLabs/runpkg
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
FormidableLabs/runpkg#209 · 4 Kommentare ·
-
bug improvement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 28/100
FormidableLabs/runpkg#183 ·
-
Prettier enhancements: feedback/state & optionsEvtl. wieder frei @kiraarghy hat das vor 2484 Tagen übernommen, und es ist kein Pull Request offen. Offen
FormidableLabs/runpkg#176 · 1 Kommentar · 3 zugewiesene Personen ·
-
"Contributing" docEvtl. wieder frei @kiraarghy hat das vor 2484 Tagen übernommen, und es ist kein Pull Request offen. Offen
FormidableLabs/runpkg#174 · 1 Kommentar · 2 zugewiesene Personen ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
FormidableLabs/runpkg#172 · 1 Kommentar ·
Alle Issues in FormidableLabs/runpkg
Ähnliche Issues
-
enhancement version-minor
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
cuttle-cards/cuttle#1467 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 3-5 Tage Anfängerfreundlichkeit 62/100
career-ops-hq/career-ops#6399 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
-
Link Checker ReportOffenautomated issue report
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
area: hook area: plugin claude-code difficulty: easy dx enhancement good first issue help wanted tech: node
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
flisk-sh/run-my-agents#25 ·