# Smart quotes, dashes and ellipses in PDF

Straight quotes become curly ones, hyphens become en and em dashes, and three dots an ellipsis. Code is never touched, which is where a simple search and replace goes wrong.

"Straight quotes" turn curly, -- and --- become dashes, ... becomes an ellipsis, and code is never touched. Toggle: smart_typography.

- PDF: https://legivel.com/examples/text-structure/smart-typography.pdf
- Page: https://legivel.com/examples/text-structure/smart-typography
- Open in the editor: https://legivel.com/markdown-to-pdf?sample=smart-typography
- More markdown text and structure in PDF: https://legivel.com/examples/text-structure

## Markdown source

````markdown
# Smart typography

"Straight quotes" become curly quotes, 'single ones' too, and it's clever about
apostrophes in it's, don't and the '90s. Two hyphens -- like these -- become an
en dash, three --- like these --- an em dash, and three dots... become an ellipsis.

Ranges and numbers read better for it: pages 12--18, the 2024--2026 season,
a 3--2 result, and -40 °C is the same as -40 °F.

Code is never touched: `"quotes" -- stay -- literal...` and so does a fenced block:

```
"straight" -- here --- and...
```

Two ways to force a line break inside one paragraph, for addresses and verse:

Dr. Amara Okafor
Institute of Marine Research  
Pier 4, Harbor Road \
Wellington
````
