From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31429 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel Braun Newsgroups: gmane.text.pandoc Subject: Re: Disable inicode math in markdown > html > markdown conversion Date: Thu, 22 Sep 2022 13:41:27 -0300 Message-ID: References: <13b58a78-9b10-43f7-83fc-3905e01a7c69n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000035775205e946bc28" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40054"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCG2HNWSUEIRBQ5AWKMQMGQECCZHMGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 22 18:41:44 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vs1-f63.google.com ([209.85.217.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1obPGh-000A8n-2P for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 22 Sep 2022 18:41:43 +0200 Original-Received: by mail-vs1-f63.google.com with SMTP id 124-20020a671082000000b0039b07671c7asf2075113vsq.13 for ; Thu, 22 Sep 2022 09:41:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663864902; cv=pass; d=google.com; s=arc-20160816; b=k7N9y1UT5kG8TuDF96vlt/VF5pA4lNSJa2XQzZ80g0I8zY+DsOGyvU/ks+u+U/FXdd IM2gDB9VDAvi3NcNpnBdOAR7d35BU78lcY5ehPA3ZjPG52znyRQ7xy81eGg/jflwJPzh QxpzI8sjUzstj4ulE7ygcciS4QhCuZikplt/1XuLl29EnK3qnLLBHiaF3zrOSy0LXI/g +jTGsPm5SpThlMIs5NfBO09R2nMI28c53BAp9b/ELVGEzfz+Ic+G2zk2OeC33H2Ot940 gAtjfbXY+RBfoCusu1ybZIa8n+XqzvfA+e2jM2OtVVOe2TO9MZFQWKwN6efwtsTwAYfS vxBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=m2Cg1apkGaZ5xwqxAcm9O+N6Pe9+G4PM7hBRBmvK2LQ=; b=J2otUJKxoN2xZk+PFkv9noK3+n5OqYNeQsoTJUmFyRII4AMA92+P+yPdt905A8Peu0 VyEf1RTmn56qkwbxMdrJj9BizITjWaxteo5cXcNKxtUB59VLxvzG2BPDaug+i1R0VHyR YuFvpHMiFi97Bqx+mPVc3UPZK8S+pE1N4V4VAnbBvyDW8BXpaWJDrFAqqmkSIC8Tfnoo DWuv7HLtvMvaxLy/CMIOIW9rvI0W5mQUD2BOUpJIScBUQCXkG/AVFHWcWIhmk3vF+9bi pMJJJEnAnTX6UQw3ViotVA3SnnkMONelRdn7K7Qx8AUmghZ7c/ftwlKlb1e9pPkcWx1L Ic8w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aerqDVae; spf=pass (google.com: domain of braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2c as permitted sender) smtp.mailfrom=braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date; bh=m2Cg1apkGaZ5xwqxAcm9O+N6Pe9+G4PM7hBRBmvK2LQ=; b=jbeWYuKqr6yLQXdct5ey53PX1lAP9IC4JM6648VocdJIeTPrxh/kv/vBa/F7f/SpQW p8zpOgKHqVTKxTUSE6pSCHmwrfx4oad6mTUimzybmXFvZwG/KfU4GDfCu/LX+EmXInD9 c3zNGkw/QrJdYRCfM7NtEYlPCjIv4tjD1dUtxG1FU79u2G8lojfH+5vsUtC/27piOBZF rcUxAM7SohAvX3CBBoxCcsjttcBkhx33R7ibPiSO1iwcTmw10K3jUoLU0lhOtqGMgIvz ElS928Qn4s0Mt8CjO5F199H9Xo8l4Or78HdvjkIK5YFjs2XTjIusunV1EztFbXW9jPZz m6qA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date; bh=m2Cg1apkGaZ5xwqxAcm9O+N6Pe9+G4PM7hBRBmvK2LQ=; b=UVuJ/JHO7tDpAZBJ+UsC+QSlunMzMnFV32Rj5phFDfwVYS4k0r6ZbMrJuIj7e/W8vS CHrSHmlpvh5FAnS2GRl8Nnd7xhXjpNFsemzXhK902fyjNS2yucSO6NiMH9nE8/XqLr2z GV3BdV1ycz+IOb0SQN0V9dQqkqv1r+bH/uM29vdLKUfPo+IKJAOruTShjT3R1tmredoD tP7OFDt6VKHi26gq37+fti75EXBV0PTy0KMSsBCeq/dQDqW95qXcwCBpaaOHnWeHULHI BKPVDVqcgTKiVyes6/bHQ+HOVJzzqy55RrOSKY9Q2AL7IxwqV4WjDhdGud7U1xpaoefg 0Bug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date; bh=m2Cg1apkGaZ5xwqxAcm9O+N6Pe9+G4PM7hBRBmvK2LQ=; b=IY55O4wPf9x4s0k6r5Q72sgzUFGqC2H+ke3u7MPVc5Mxh0jpmkNB6vg5idtCtZmFzw NfBUZqBnE4K67kpV4fSErT34f3Dz4k2cPRLt3YGrR9wSxWN6mSJYDJvzOq0/OctCcqb6 3YlSosxecoypthf4z2Rrro+MhMAr4D6NyETl2fp01CR1A6LQEoiqOU3Fqcn+/l5wo9gV wBUgFTBK720xS7CEAyIe9kH1JqyRo+9nTxWVDiP8IFmPHWkvDmtmXo4bFLf5W8ZtUoij HE4C0Bm6L/QTh20pGvKW4k+qyHu3WGBIo4QOv7diSqCE+vma4/qBxOl7i27Kr/gHBrhy Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0JkHqCXLJV1v0dYcemOpm9OhlQJayYHUNH1OATLG9u4c6Z02Mm yhcyw/fCuOXVxsStqJcU8ts= X-Google-Smtp-Source: AMsMyM7RcF+foMNRd+64w6uHEMB7BArJzjG47g2W+efZq9HuYToOfHYrEGWnZKr3/WCKfSJUQTHspA== X-Received: by 2002:ab0:7696:0:b0:3af:8ee3:a5ed with SMTP id v22-20020ab07696000000b003af8ee3a5edmr1773384uaq.123.1663864901972; Thu, 22 Sep 2022 09:41:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6102:aca:b0:390:b9b2:c61a with SMTP id m10-20020a0561020aca00b00390b9b2c61als2843646vsh.4.-pod-prod-gmail; Thu, 22 Sep 2022 09:41:38 -0700 (PDT) X-Received: by 2002:a05:6102:1525:b0:390:d5f3:cafb with SMTP id f37-20020a056102152500b00390d5f3cafbmr1731012vsv.58.1663864898695; Thu, 22 Sep 2022 09:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663864898; cv=none; d=google.com; s=arc-20160816; b=pjgoWT5UFd/aFMBz4TN/0olMDvGZ2N0Xn3kTNmtroRpLZvYiW33+nRRwHzw3xNIESa MvPG2FV9m2G0ZGCOBNow9g56M4W/yFFlHGu+F/B9NJVshQBnuUUw168qbz9kVyADCwOG 1KVaPZfaLQ6vzE/VOqRV8X3bsIysVfktNMNBd8xCaRiG5dwvWX3zw8Q1P0tIFp1ZyGcN LFEq/1pbF2Z5GpWGCgRuO4CZVqFnjzm3b3DsJzaTxKoInJdoh9pfHVHliWGlGU6khqB9 JtP9Fou9Mze2+PRklI6a187/R+pCLOb02LZg33KiFGUhpIq2gIkNy8GIx0AHSgAnq6yX Vkog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=E5p946AdHOQzAjyhVbD1NwfgjEk78UajW9pydJ9zOQI=; b=gni/9NZKOhKZIUxLmiCrMgEnUDr+nFTCjXMKi1H3VSg91MM1BcwyFjc8ZlHfeY3eRA i6DpXhfBhKOwKTEso1a0n2jLzIU4DAxnsF+oAD3KAXgqygsscADtoTyCEXaQYLzaez0D UBf2CzSpj/byd2VXtMxAgJ3dQ27vu3thg/cyz4YyaC9GTzpeQEdYHwaB0/DatZZ1wrjg isHocbFwu/MXmwo5oYgwcEQ4g70Ox43wvRkgOhYyiJF2pzbeWBdZb5ZBl7KYQK4ANJP3 QnS+aMfmGW1OSb0Xd2MhlaLem6zR0xH4PYjjZuIl6qBNdZ4ceRk921NAPAMn5zIBdfko bDlg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aerqDVae; spf=pass (google.com: domain of braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2c as permitted sender) smtp.mailfrom=braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com. [2607:f8b0:4864:20::b2c]) by gmr-mx.google.com with ESMTPS id v11-20020a1fac0b000000b0039dfd851b80si282831vke.5.2022.09.22.09.41.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 09:41:38 -0700 (PDT) Received-SPF: pass (google.com: domain of braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2c as permitted sender) client-ip=2607:f8b0:4864:20::b2c; Original-Received: by mail-yb1-xb2c.google.com with SMTP id s14so13589904ybe.7 for ; Thu, 22 Sep 2022 09:41:38 -0700 (PDT) X-Received: by 2002:a25:fc4:0:b0:6a8:e9a8:54f7 with SMTP id 187-20020a250fc4000000b006a8e9a854f7mr4963012ybp.611.1663864898154; Thu, 22 Sep 2022 09:41:38 -0700 (PDT) In-Reply-To: X-Original-Sender: braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aerqDVae; spf=pass (google.com: domain of braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2c as permitted sender) smtp.mailfrom=braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:31429 Archived-At: --00000000000035775205e946bc28 Content-Type: text/plain; charset="UTF-8" Worked when I used tex_math_single_backlash for reading HTML. Thank you! On Thu, Sep 22, 2022 at 12:29 PM John MacFarlane wrote: > When writing HTML, use > > -t html --mathjax > > and when reading HTML, use > > -f html+tex_math_dollars > > This should round-trip the math. as tex. > > > On Sep 22, 2022, at 8:25 AM, Gabriel Braun > wrote: > > > > Hello! > > > > I need to convert a markdown document to HTML and then convert it back > to markdown. When I do this, math like $\pi$ gets converted to class="math inline">\u03c0 in the HTML and to *\u03c0* when > I convert it back to markdown. > > > > Is there a way to disable this feature and get $\pi$ back in the final > markdown? I have tried using html-tex_math_dollars, but that ended up > escaping all the $ signs. > > > > Thank you! > > > > -- > > 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/13b58a78-9b10-43f7-83fc-3905e01a7c69n%40googlegroups.com > . > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/2F_mBqv51Vw/unsubscribe. > To unsubscribe from this group and all its topics, 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/DE14185D-3ADC-472D-8D05-8347EE6CD8FE%40gmail.com > . > -- 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/CAJx6N45PxAEUaRpZ9TKCNPpff09Mq1d4w2WkvSwxhc9YvpQU5g%40mail.gmail.com. --00000000000035775205e946bc28 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Worked when I used tex_math_single_backlash for reading H= TML.

Thank you!

On T= hu, Sep 22, 2022 at 12:29 PM John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
When writing HTML, use

-t html --mathjax

and when reading HTML, use

-f html+tex_math_dollars

This should round-trip the math. as tex.

> On Sep 22, 2022, at 8:25 AM, Gabriel Braun <braun.pineschi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wro= te:
>
> Hello!
>
> I need to convert a markdown document to HTML and then convert it back= to markdown. When I do this, math like $\pi$ gets converted to <span cl= ass=3D"math inline"><em>\u03c0</em></span> i= n the HTML and to *\u03c0* when I convert it back to markdown.
>
> Is there a way to disable this feature and get $\pi$ back in the final= markdown? I have tried using html-tex_math_dollars, but that ended up esca= ping all the $ signs.
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/13b58a78-9b10-43f7-83fc-3905e01a7c69n%40googlegrou= ps.com.

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/2F_mBqv51Vw/un= subscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pan= doc-discuss/DE14185D-3ADC-472D-8D05-8347EE6CD8FE%40gmail.com.

--
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/CAJx6N45PxAEUaRpZ9TKCNPpff09Mq1d4w2WkvSwx= hc9YvpQU5g%40mail.gmail.com.
--00000000000035775205e946bc28--