zhaoterryy / mkdocs-pdf-export-plugin

An MkDocs plugin to export content pages as PDF files
MIT License
313 stars 44 forks source link

MkDocs PDF Export Plugin and Font Awesome Issue #63

Open rei-vilo opened 4 years ago

rei-vilo commented 4 years ago

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!

MiLiCLN commented 4 years ago

Any news on this yet?

timvink commented 3 years ago

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

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

rei-vilo commented 3 years ago

Sure, I'm already using the fontawesome icons.

markdown_extensions:
    - pymdownx.emoji:
        emoji_index: !!python/name:materialx.emoji.twemoji
        emoji_generator: !!python/name:materialx.emoji.to_svg
# 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)
Capture 2020-10-08 à 10 12 49 Capture 2020-10-08 à 10 13 28