Generate HTML identifier from section title
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- html
- Área
- web-dev
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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;
}
- Lenguaje dominante
- C++
- Estrellas
- 5.9k
- Forks
- 499
- Merge medio
- 4 h 4 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pbek/QOwnNotes
-
Type: Upstream-problem
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Type: Support
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
-
Effort: Very high Type: Feature Type: Upstream-problem
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Type: Feature
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Severity: Low Type: Upstream-problem
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Todos los issues de pbek/QOwnNotes
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
harfbuzz/harfbuzz#6966 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
sirius-db/sirius#2807 · 2 reacciones ·
Los mantenedores suelen responder en 2 días
-
CS 1.9.1 and probably 2.0.0 convert black triangles to white at runtime, regarless of PBR configs.Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
community-shaders/skyrim-community-shaders#3325 ·
Los mantenedores suelen responder en 1 día
-
triage:to-check
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día