From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Denis_Bitouz=C3=A9?= Subject: Re: Bug: \vert{} exported to markdown not as expected [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)] Date: Mon, 14 Sep 2015 09:46:01 +0200 Message-ID: References: <87bnd6ulv0.fsf@nicolasgoaziou.fr> <87y4gat5az.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: (Charles C. Berry's message of "Sun, 13 Sep 2015 17:10:08 -0700") 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: "Charles C. Berry" Cc: Denis =?utf-8?Q?Bitouz?= =?utf-8?Q?=C3=A9?= , Nicolas Goaziou , public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org Le 14/09/15 =C3=A0 02h10, "Charles C. Berry" a =C3=A9cri= t : > On Sun, 13 Sep 2015, Nicolas Goaziou wrote: > >> >> >> Denis Bitouz=C3=A9 wr= ites: >> > [...] > >> Markdown export back-end use :html conventions to translate entities. >> For some reason, HTML prefers | over |, and so does markdown. >> >> There are a few options available: >> >> 1. Prefer | over | in HTML >> 2. Overwrite "vert" entity with a new one that would do 1. So >> basically, this is 1 but on your machine only. >> 3. Use a new entity that becomes | when used in HTML export. >> > > If this creates a backend derived from 'md (and does not modify ox-md.el), > then fine. But, ... > > It seem like there are flavors of Markdown that use verticals for varying > purposes. Sigh... :) > For example, rmarkdown > > http://rmarkdown.rstudio.com/authoring_pandoc_markdown.html > > uses them as `line block' markers and to construct `table.el' style table= s. > > And I have seen verticals used to set off citations elsewhere. Sigh... again :) > And I am not even sure what Denis meant by using them to `interpret > strings'. As said, I'm only a very occasional markdown user, mainly on github and SE (flavors). In my current usecase (on a OSQA site), e.g. |REP_GAIN_BY_UPVOTED| entered as markdown displays the value of REP_GAIN_BY_UPVOTED (some internal site variable) when rendered as HTML. Anyway, as pointed out in my answer to Nicolas, it may be useful to other org mode users to be able to obtain "real" pipe symbol in markdown export. Hence, a new entity that becomes | when used in md export could be nice... Best. --=20 Denis