From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: How to get === on a line by itself to be a special string Date: Sat, 9 Feb 2013 22:16:28 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4PHF-0002qc-8s for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 00:16:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4PHD-0002NH-Qw for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 00:16:33 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:64926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4PHD-0002N4-Kq for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 00:16:31 -0500 Received: by mail-wi0-f179.google.com with SMTP id ez12so2118576wid.0 for ; Sat, 09 Feb 2013 21:16:28 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I want separators like this: === to be treated as a special string in HTML. This was the case in the old exporter. org-html-special-string-regexps is a variable defined in `ox-html.el'. Its value is (("^-----$" . "
") ("---\\([^-]\\|$\\)" . "—\\1") ("--\\([^-]\\|$\\)" . "—\\1") ("^===$" . "
") ("\\\\-" . "­") ("---\\([^-]\\)" . "—\\1") ("--\\([^-]\\)" . "–\\1") ("\\.\\.\\." . "…")) I don't want them to be interpreted as code. I don't want to turn off all code just to get this one thing to work. I don't want to do ~===~. Does this mean some filter has to be used? This did not work. (add-to-list 'org-export-filter-code-functions (lambda (text back-end &rest _rest) (if (eq back-end 'html) (replace-regexp-in-string "^===$" "~===~" text) text))) Thanks.