Qué es Generador de indice con anclas?
Generador de indice con anclas es una herramienta de navegador para esta tarea: Pega HTML con encabezados y obten un indice anidado con enlaces de anclaje. La salida es fácil de revisar antes de usarla en un sitio publicado.
Quick answer
Generate a nested table of contents with anchor links from heading tags in your HTML. Each TOC entry links to a slugified id on the corresponding heading for easy page navigation.
Limitations
- The tool generates the TOC markup and the heading id values separately. You must manually add the generated id attributes to the heading tags in your HTML for the anchor links to work.
- Headings without text content or headings nested inside non-semantic containers may not be extracted correctly by the parser.
- The generated TOC uses flat nesting based on heading levels. Custom CSS may be needed for multi-level indentation styling.
Cómo usar esta herramienta
- Abre la herramienta y escribe los valores necesarios.
- Revisa la salida en el panel de resultado.
- Copia solo la parte que encaja con tu página.
- Prueba el cambio antes de publicar.
Para qué puedes usarla
- Resolver tareas repetidas de publicación con menos fricción.
- Preparar marcado, CSS o checklists antes del lanzamiento.
- Evitar pequeños errores comunes en sitios estáticos.