From 8d3959ea295a1c4837a7b735e01f850a07ee256e Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sun, 13 Mar 2022 17:18:31 -0700
Subject: [PATCH] Remove special redefinition of `\sout`.

This used to be necessary to avoid problems with hyperref,
when headings contain strikeout text, but it does not seem to be
necessary any more (tested).
---
 data/templates/default.latex    | 2 --
 test/lhs-test.latex             | 2 --
 test/lhs-test.latex+lhs         | 2 --
 test/writer.latex               | 2 --
 test/writers-lang-and-dir.latex | 2 --
 5 files changed, 10 deletions(-)

diff --git a/data/templates/default.latex b/data/templates/default.latex
index aa262ee80..c25f75ff0 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -381,8 +381,6 @@ $if(csquotes)$
 \usepackage{csquotes}
 $endif$
 \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
 \hypersetup{
 $if(title-meta)$
   pdftitle={$title-meta$},
diff --git a/test/lhs-test.latex b/test/lhs-test.latex
index 4ec0133db..a83e31202 100644
--- a/test/lhs-test.latex
+++ b/test/lhs-test.latex
@@ -81,8 +81,6 @@
   \usepackage{selnolig}  % disable illegal ligatures
 \fi
 \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
 \hypersetup{
   hidelinks,
   pdfcreator={LaTeX via pandoc}}
diff --git a/test/lhs-test.latex+lhs b/test/lhs-test.latex+lhs
index 24bcc255d..54af9388f 100644
--- a/test/lhs-test.latex+lhs
+++ b/test/lhs-test.latex+lhs
@@ -48,8 +48,6 @@
   \usepackage{selnolig}  % disable illegal ligatures
 \fi
 \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
 \hypersetup{
   hidelinks,
   pdfcreator={LaTeX via pandoc}}
diff --git a/test/writer.latex b/test/writer.latex
index 0074b7b1d..554efc7b6 100644
--- a/test/writer.latex
+++ b/test/writer.latex
@@ -59,8 +59,6 @@
   \usepackage{selnolig}  % disable illegal ligatures
 \fi
 \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
 \hypersetup{
   pdftitle={Pandoc Test Suite},
   pdfauthor={John MacFarlane; Anonymous},
diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex
index 8a5301085..eb466c266 100644
--- a/test/writers-lang-and-dir.latex
+++ b/test/writers-lang-and-dir.latex
@@ -64,8 +64,6 @@
   \newenvironment{LTR}{\beginL}{\endL}
 \fi
 \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
-% Avoid problems with \sout in headers with hyperref
-\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
 \hypersetup{
   pdflang={en},
   hidelinks,