diff options
| author | Blista Kanjo | 2023-07-10 03:31:11 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-07-10 03:31:11 -0400 |
| commit | 62fc93d9e8690db7c41f758cab39ba75f56e141e (patch) | |
| tree | cb9378d8f05da45f259879edf2400a736b985c79 /download.php | |
| parent | 3dd6a8b9f1b8635088502780de51cc9ca3d4e34a (diff) | |
refactor: going ASCII only mode due to some regression
Diffstat (limited to 'download.php')
| -rw-r--r-- | download.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/download.php b/download.php index d7e8883..fa0f9fd 100644 --- a/download.php +++ b/download.php @@ -44,7 +44,7 @@ $userMarkdown = escapeshellarg($_SESSION["user-input"]); $conversion = "pandoc -f markdown+hard_line_breaks output/'$convert' -t beamer -o output/'$filename' --pdf-engine=pdflatex --include-in-header=output/header.tex"; - $createPushFile = "echo $userMarkdown | sed 's/'\"'\"'/’/g' > output/'$push'"; + $createPushFile = "echo $userMarkdown | iconv -c -t ASCII//TRANSLIT | sed 's/'\"'\"'/’/g' > output/'$push'"; $createConvertFile = "cat $templateFile output/'$push' > output/'$convert'"; shell_exec($createPushFile); |
