Skip to content

Absolute links modified on print page #1436

@kuon

Description

@kuon

In my source markdown, I have an HTML block, like so:

<figure>
 <img src="/figures/depolarisation_fibres_cardiaques.svg">
 <figcaption>Dépolarisation de la fibre cardiaque.</figcaption>
</figure>

In normal output files, it is OK, but on the print page, it is replaced by:

<figure>
 <img src="01-Notions-Elementaires//figures/depolarisation_fibres_cardiaques.svg">
 <figcaption>Dépolarisation de la fibre cardiaque.</figcaption>
</figure>

01-Notions-Elementaires being the name of the chapter the file is in.

I can understand while relative URL should be modified, but absolute URL should be left untouched.

mdbook v0.4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PrintArea: The "printed" page

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions