You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an id is defined for a span element in the source MD/HTML, an href to it is not clickable in the generated PDF. If I change span to div the problem is not seen.
$ cat docs/index.md
# Welcome to MkDocs
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
## Commands
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.
<span id="span_id"/>
<div id="div_id"/>
<a id="a_id"/>
## Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
The build only generates the div_id anchor point, not the span_id or a_id -
$ mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: /home/srivatsp/Code/span-test/site
INFO - Number headings up to level 3.
INFO - Generate a table of contents up to heading level 2.
INFO - Generate a cover page with "default_cover.html.j2".
INFO - Converting <img> alignment(workaround).
INFO - Anchor points provided:
INFO - | #.:
INFO - | #.:commands
INFO - | #.:div_id
INFO - | #.:project-layout
INFO - | #.:welcome-to-mkdocs
INFO - | #author
INFO - | #copyright
INFO - | #doc-cover
INFO - | #doc-toc
INFO - Rendering for PDF.
INFO - Output a PDF to "/home/srivatsp/Code/span-test/site/pdf/document.pdf".
INFO - Converting 1 articles to PDF took 19.0s
INFO - Documentation built in 19.26 seconds
The text was updated successfully, but these errors were encountered:
If an
id
is defined for aspan
element in the source MD/HTML, anhref
to it is not clickable in the generated PDF. If I changespan
todiv
the problem is not seen.Here's a minimal example -
The build only generates the
div_id
anchor point, not thespan_id
ora_id
-The text was updated successfully, but these errors were encountered: