Enhancement: Move emoji short code to separate plugin
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- tooling
Direzione di ricerca
Inizia da /src/core/render/emoji-data.js per comprendere il supporto ai codici brevi delle emoji che deve essere rimosso dal bundle core. Poi segui l’organizzazione esistente dei plugin e l’output della build; il lavoro è completo quando un plugin ufficiale fornisce i codici brevi e il rendering nativo o in stile GitHub, il bundle core non include più quel supporto ed è ridotto come proposto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
👉 Note: This is a post-v5 feature request (see Milestone)
Feature request
- Remove emoji short code support from Docsify core bundle
- Create a new emoji official plugin:
- Provide short code support (e.g.,
:+1:= 👍) - Provides ability to render native emoji characters or GitHub-style emoji images
- Provide short code support (e.g.,
Proposal
Significantly reduce the file size of the core Docsify library by removing emoji short code support and instead offering it as an official plugin.
- Docsify with emoji short code support: 164KB (minified)
- Docsify without emoji short code support: 94KB (minified)
Removing short code support (/src/core/render/emoji-data.js) provides a 53% reduction in the minified Docsify.js bundle size.
An official Docsify emoji plugin would provide both short code support (e.g., :+1: = 👍) and the ability to render GitHub-style emoji images instead of OS-native emoji characters for those who want consistent emoji across all platforms (as Docsify v4 does today by default).
IMPORTANT: Removing short code support does not mean Docsify will be unable to render emoji without the plugin. This change only requires markdown authors to use their OS-native emoji picker to add emoji to their markdown documents instead of short codes. Those emoji will work as expected in Docsify, GitHub, and in other markdown applications, which arguably makes their markdown more portable since not all markdown environments support GitHub short codes.
For context...
Docsify's emoji short code support has been included in Docsify since v4 was released in 2017. This was a convenient way for those familiar with GitHub short codes to render emoji in their Docsify sites. More importantly, it was also the only way for Windows and Ubuntu users to easily add emoji to their Docsify and GitHub-flavored markdown because those operating systems lacked a native emoji picker:
- MacOS emoji picker: released ~2013
- Windows emoji picker: released ~2020
- Ubuntu emoji picker: released ~2018
Thankfully, all major operating systems now support native emoji pickers which are easily accessible via a keyboard shortcut:
- Mac: Command + Control + Spacebar
- Windows: Win + .
- Ubuntu: Control + .
These native emoji pickers reduce--but do not eliminate--the need for emoji short codes because users can now easily add native emoji characters to their markdown documents.
- Lingua principale
- JavaScript
- Stelle
- 31.5k
- Fork
- 5.8k
- Merge medio
- 2g 14h
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di docsifyjs/docsify
-
Query parameter values are truncated at a second equals signForse già presa @xu91102 l’ha presa 21 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Bullet points beginning with inline math: subsequent text formatting not recognised correctlyApertabug Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
I maintainer di solito rispondono entro 2 giorni
-
Cached AJAX responses lose status metadata exposed through vm.route.responseForse già presa @xu91102 l’ha presa 21 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
In the Edge browser, the character `{docsify-updated}` is not replacedForse di nuovo libera @AmanUllah687 l’ha presa 74 giorni fa e non c’è nessuna pull request aperta. Apertawait for information
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
docsifyjs/docsify#2681 · 11 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Nested/Recursive includesApertafeature request Triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
docsifyjs/docsify#2643 · 5 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di docsifyjs/docsify
Issue simili
-
bug lsp sev-3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
Miaotofu01/Study-Mate#206 ·
I maintainer di solito rispondono entro 1 giorno
-
effort:low model:light plan planner:fable-5-1 test-quality tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
-
[BUG][5.4.0] 网页全屏时, 不能直接切全屏Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
zhw2590582/ArtPlayer#1073 ·