Org: in markdown export, don't html-escape quotes

+ a typo fix
This commit is contained in:
TEC 2021-02-06 15:56:23 +08:00
parent 9ecf67e767
commit 0c50e2a651
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 2 additions and 2 deletions

View File

@ -7147,7 +7147,7 @@ frame from ~1~ to ~2~.
#+end_src
**** Exporting to Markdown
When I want to paste exported markdown somewhere (for example when using [[*\[\[https://github.com/zachcurry/emacs-anywhere\]\[Emacs Anywhere\]\] configuration][Emacs
Anywhere]]), it can be preferable to have unicode charachters for =---= etc. instead
Anywhere]]), it can be preferable to have unicode characters for =---= etc. instead
of =—=.
To accomplish this, we just need to locally rebind the alist which provides
@ -7162,7 +7162,7 @@ these substitution.
("---\\([^-]\\)" . "—\\1")
("--\\([^-]\\)" . "\\1")
("\\.\\.\\." . "…"))))
(funcall orig-fn text info)))
(funcall orig-fn text (plist-put info :with-smart-quotes nil))))
#+end_src
In the future, I may want to check =info= to only have this active when =ox-gfm= is