Generate HTML identifier from section title
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- html
- Ambito
- web-dev
Direzione di ricerca
Start by finding the HTML export code that assigns section identifiers and the tests covering exported sections; compare its current numeric IDs with the title-based behavior described here. Done means exported section IDs reflect their titles and can be used as fragment links, with tests verifying the generated HTML.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Expected behaviour
I can link to a specific section in a exported HTML document using an identifier generated from its title.
eg. <h4 id="my-section">My section</h4> in generated html, in order to be able to use my_note.html#my-section to access "My section"
Actual behaviour
The identifier for sections exist, but are numerically incremented, and do not reflect the title of the section.
example: <h4 id="toc_6">My section</h4>
Possible implementation
This is how it's done in the insert-toc script, in order to work well with GitHub flavored Markdown:
function extractLink(title) {
var lowercase = title.toLowerCase()
var spaceReplaced = lowercase.replace(/ /g, "-")
var invalidCharsRemoved = spaceReplaced.replace(/[^A-Za-zÀ-ÿ-_]/g, "")
return invalidCharsRemoved;
}
- Lingua principale
- C++
- Stelle
- 5.9k
- Fork
- 499
- Merge medio
- 4h 4m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna 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 pbek/QOwnNotes
-
Type: Upstream-problem
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Type: Support
Difficoltà 5/5 Più di una settimana Idoneità per principianti 42/100
-
Effort: Very high Type: Feature Type: Upstream-problem
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Type: Feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Severity: Low Type: Upstream-problem
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
Tutte le issue di pbek/QOwnNotes
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
harfbuzz/harfbuzz#6966 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
sirius-db/sirius#2807 · 2 reazioni ·
I maintainer di solito rispondono entro 2 giorni
-
CS 1.9.1 and probably 2.0.0 convert black triangles to white at runtime, regarless of PBR configs.Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
community-shaders/skyrim-community-shaders#3325 ·
I maintainer di solito rispondono entro 1 giorno
-
triage:to-check
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno