0

I am creating an MKDocs 1.4.3 (running on Python 3.11.2) static site with the MKDocs Material theme.

The strange thing is that apostrophes like ' are being rendered as ’ when I serve the rendered site locally with the mkdocs serve command.

For example, here's a snippet of my Markdown source:

## What is a container?

Let's consider the analogy of shipping containers that are used throughout the world.

This renders as:

MKDocs rendering error

Where you can see let's is shown as let’s.

Similarly, double quotes are rendered as “.

What might be causing this strange phenomenon and how do I fix it?

Thank you.

hpy
  • 1,989
  • 7
  • 26
  • 56
  • 1
    you're reading UTF-8 incorrectly as ISO 8859-1. Set the encoding correctly – phuclv Aug 02 '23 at 13:13
  • Thanks @phuclv, but what does this mean and where/how do I set this encoding? Happy to upvote a specific answer. – hpy Aug 02 '23 at 13:31
  • Solution found here: https://github.com/mkdocs/mkdocs/discussions/3329 – hpy Aug 06 '23 at 21:02

0 Answers0