From c5dcd220c1d99e07b5736b6bbae4687aa82d3f55 Mon Sep 17 00:00:00 2001 From: Ana Gelez Date: Mon, 25 Mar 2024 14:32:02 +0100 Subject: Fix smart quotes in PDF outline (#3790) --- tests/ref/bugs/3662-pdf-smartquotes.png | Bin 0 -> 11950 bytes tests/typ/bugs/3662-pdf-smartquotes.typ | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/ref/bugs/3662-pdf-smartquotes.png create mode 100644 tests/typ/bugs/3662-pdf-smartquotes.typ (limited to 'tests') diff --git a/tests/ref/bugs/3662-pdf-smartquotes.png b/tests/ref/bugs/3662-pdf-smartquotes.png new file mode 100644 index 00000000..c272a8ff Binary files /dev/null and b/tests/ref/bugs/3662-pdf-smartquotes.png differ diff --git a/tests/typ/bugs/3662-pdf-smartquotes.typ b/tests/typ/bugs/3662-pdf-smartquotes.typ new file mode 100644 index 00000000..36dc8a15 --- /dev/null +++ b/tests/typ/bugs/3662-pdf-smartquotes.typ @@ -0,0 +1,12 @@ +// Smart quotes were not appearing in the PDF outline, because they didn't +// implement `PlainText` +// https://github.com/typst/typst/issues/3662 + +--- += It's "Unnormal Heading" += It’s “Normal Heading” + +#set smartquote(enabled: false) += It's "Unnormal Heading" += It's 'single quotes' += It’s “Normal Heading” \ No newline at end of file -- cgit v1.2.3