From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26066 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Norman Ramsey Newsgroups: gmane.text.pandoc Subject: How to get \mathtt to write in HTML as a single element? Date: Fri, 4 Sep 2020 18:25:23 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2994_46614758.1599269123314" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14639"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC5MLC7FZABRBBGSZP5AKGQEAMAB4ZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 05 03:25:28 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kEMxL-0003gl-Uv for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 05 Sep 2020 03:25:27 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id 33sf2643961otd.16 for ; Fri, 04 Sep 2020 18:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=/uEicoXZdulebHgj41uadowmhjb/jrM7Cfd+5mATP7k=; b=Ftk8RvbDtQD3wjv+KMe0Lsl4sVYvkJq88rPxGdckGOIExgxyJUDED8jd0z1WTBTi6R cjCAsU39K43WQfgQSJ9hECOLxqfgvRb1UJb/6t+zcuXqpwVX8/yVuMy3T36QmZ3pY5Q4 +zohnwiugCTgidRGjw2fc7Diwt0pS7DAYCXsOfSBp0HsoIMirmUaasoN3jlPgiceOjuZ e5tVrEOjjATD0IxYXbSQ6+NFkO1hsdDcBBHclRs7lY8XAaqhbn5ZEeJ7oPaHTuACDKUx szokAfSD8IJvO4sWzA0MzcTxNhgS9pDKbl6X92xhHtUEevzWQ2drNOOjkmTqLdw/NY0J uqog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=/uEicoXZdulebHgj41uadowmhjb/jrM7Cfd+5mATP7k=; b=jNuUwXCBCdUDf1Q2P09f/QmrCKomSBmuYCNKU1Wqsv5ScWlKXljgmOJ/FC+qAlQHrJ /m0EYf099ngFj+tHNjuRq9ZecT0UcDQujlpi3jlGx0zNLmRgRg+6PR4EPB/u/4inTnUB Bti+cI3dAxMzCbSs3dR3afMXDRCn06xiCUQF+yWewirWl9cgUvy2aNHqrfoXFykY56RI wlv8EQXhW4x4V6to6xPlugwiKc0wn+37O9Eaph87bSzoWxLAJTd1WnzFdL9v177XQXGI l1ku3J4P+lO+hjd/C7lG72A8IOpKG9yuKhag0D2Vf6L6JYLRqmRNNpKrrBoGyf3KcP1O v6Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=/uEicoXZdulebHgj41uadowmhjb/jrM7Cfd+5mATP7k=; b=s1F7GLC1nKM2HdnAFEhwR3MLSXku9iDQLhpiQnhF8u68AnZTkfsdn1V90kA7vT+XDJ BQgSl1HBIcJF3qpGFwZmFbryFDQixpp0HIbzkMkDYN5B8lnIQxj/QoiRk23+yIkxgFkg 9AQe/cVnAEVGdl0j08uqITHZhmZQYq0yMFGgBM8j+VW8/Q5o+x6YctJCIjuGS6yiFOnt oz/gmAlvzSRwe+ygKfew9gas6c1uaBmLqMkPqKvZnEGT6Hl0aj5mx748JxHo8hGFE/Tq sIBC/iCdBWMtv8obLKDX+IMmPYPpzNj2ODP3BDv4eWi0IALCeQdemnozdWTuOJ56npcS 2EJA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532lHcola9EDKpCWPWx3m3VKWbXvkPF3KXee5D6vRjPjo3jhFr0W ABUxxYcxYyq01qPaLByew5I= X-Google-Smtp-Source: ABdhPJzVI3w3dgdA8/TAbBbMdZgsTVYP2vL1eMaO7AM9eJXl7i7ZaS7xT3V3RZVJJZZJg3vAb1SwHQ== X-Received: by 2002:a4a:970c:: with SMTP id u12mr7968913ooi.51.1599269126998; Fri, 04 Sep 2020 18:25:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:210a:: with SMTP id i10ls2913499otc.4.gmail; Fri, 04 Sep 2020 18:25:24 -0700 (PDT) X-Received: by 2002:a9d:611b:: with SMTP id i27mr1615566otj.67.1599269124083; Fri, 04 Sep 2020 18:25:24 -0700 (PDT) X-Original-Sender: fellswalker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:26066 Archived-At: ------=_Part_2994_46614758.1599269123314 Content-Type: multipart/alternative; boundary="----=_Part_2995_636615187.1599269123314" ------=_Part_2995_636615187.1599269123314 Content-Type: text/plain; charset="UTF-8" I've got a Markdown file that contains inline math with `\mathtt`. This is parsed into native format as Math InlineMath "I_1 \\bullet \\mathtt{add}(X,Y,Z) \\cdot I_2" and when written to HTML, the `\mathtt` part renders as add I really want it to render as add so that my CSS styling will come out right. I was prepared to write a Lua filter, but it looks like the decision is being made downstream. How can I persuade the HTML writer to render the \mathtt the way I want? Norman P.S. In order to maintain compatibility with an installation I don't control, I am multiple versions behind---currently running Pandoc 2.2.1. I can request an upgrade, but not soon. -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d926b80a-5455-48a9-a655-d97676d4b43en%40googlegroups.com. ------=_Part_2995_636615187.1599269123314 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've got a Markdown file that contains inline math with `\mathtt`.  Th= is is parsed into native format as

    Ma= th InlineMath "I_1 \\bullet \\mathtt{add}(X,Y,Z) \\cdot I_2"

=
and when written to HTML, the `\mathtt` part renders as

    <code>a</code><code>d</= code><code>d</code>

I really wa= nt it to render as

    <code>add&l= t;/code>

so that my CSS styling will come out r= ight.  I was prepared to write a Lua filter, but it looks like the dec= ision is being made downstream.

How can I persuade= the HTML writer to render the \mathtt the way I want?

=

Norman

P.S. In order to mainta= in compatibility with an installation I don't control, I am multiple versio= ns behind---currently running Pandoc 2.2.1.  I can request an upgrade,= but not soon.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/d926b80a-5455-48a9-a655-d97676d4b43en%40googlegroups.= com.
------=_Part_2995_636615187.1599269123314-- ------=_Part_2994_46614758.1599269123314--