mkdocs-pdf-export-plugin icon indicating copy to clipboard operation
mkdocs-pdf-export-plugin copied to clipboard

MkDocs PDF Export Plugin and Font Awesome Issue

Open rei-vilo opened this issue 4 years ago • 3 comments

I'm using MkDocs with the fontawesome_markdown markdown extension and the pdf-export plug-in.

+ A :fa-link: mentions an internal link while a :fa-external-link: mentions an external link to the web.

The HTML pages render the characters correctly.

Capture d’écran 2019-10-31 à 12 32 59

However, the generated PDFs show the codes instead of the characters.

Capture d’écran 2019-10-31 à 12 33 19

How to fix this? Thank you!

rei-vilo avatar Oct 31 '19 11:10 rei-vilo

Any news on this yet?

MiLiCLN avatar Feb 13 '20 15:02 MiLiCLN

mkdocs-material offers support for fontawesome icons, have you tried that?

https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/

timvink avatar Oct 08 '20 07:10 timvink

Sure, I'm already using the fontawesome icons.

  • mkdocs.yml
markdown_extensions:
    - pymdownx.emoji:
        emoji_index: !!python/name:materialx.emoji.twemoji
        emoji_generator: !!python/name:materialx.emoji.to_svg
  • Section1.md
# Chapter 1

## Chapter 1 - Section 1

### Part 1

This is a test.

+ Step 1 :fontawesome-solid-link:

+ Step 2 :fontawesome-solid-external-link-alt:

![](img/Picture1-1.png)
  • Website result
Capture 2020-10-08 à 10 12 49
  • But the PDF doesn't show the icons.
Capture 2020-10-08 à 10 13 28

rei-vilo avatar Oct 08 '20 08:10 rei-vilo