From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25154 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Umut Acar Newsgroups: gmane.text.pandoc Subject: code block translation from latex to html Date: Thu, 7 May 2020 17:28:37 -0700 (PDT) Message-ID: <49108dd7-3ee5-41b5-9b8c-92c558ff46b5@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_164_628022483.1588897717365" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="1944"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDAL3NWYRQARBNWP2L2QKGQE55PEYKI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 08 02:28:41 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWqsb-0000Nn-HG for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 08 May 2020 02:28:41 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id t124sf5174892oif.13 for ; Thu, 07 May 2020 17:28:41 -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=ATzn33e8i5CBG6WXwyxv81/6hugT35iMVdlxZSf3xIU=; b=JVvGsQsFQprF3eJHs92boaQvN7p86PlycHFT1K4loqNHN7jHbAn7Oo1Es23z3BL44+ +T29IPxWdwwpQvRZeZJKzvQoeGW4pn2s62MUw8/YgmxzaxywYrisxuQ6LiTEOCVijiqo S0NnFT/WUOcC1Ph1rw7YEgxZTo+3m3GflOM0KmPtypz4bNv5yUPKtlhRlTKjuSfUsKLl 6O7uerow38l3pScEDhcVqi9kXYXkXLYQjbLHtCaVXxongUhK2wIQz/oYV77UgP+7UVII GuVExCW5LkMlGlRqGy4f/r+XoS7RY9AjiYlzbco6ryE6X0Bd2fbWF4hffUa7qZquc0qB fL/Q== 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=ATzn33e8i5CBG6WXwyxv81/6hugT35iMVdlxZSf3xIU=; b=EX85ajy4A3qKOUjEf8Z4G17edmxMVobMP3tU8lwYj6ZP5tPgihHyg/OqTRKOOxn5tu M/vElH1gOsLo1Byt76YXsnMyj2oi6nINfiGicZvTlUmGcjiABT+I8vrUb0OBzg/t03K6 NvrEpzdQS2+cIx63iDFhK7sB8irlyaKxGU/z5nQfPwZdHrfHy13S6eQIqSROFDUgI8by u0mcqR+QZ9Nxv5veewMZ+9dzvdGo+437VewTvyrT/7zv8kXJq6Li1LsdKpMd8V1oUpp7 dnf3z0Rc8BVKKKzrjTt7Xc7q+6IYrIcoTwYPuJ5yTA+BAjNW7X29jhr1KTvZmUJEd4ko jlpQ== 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=ATzn33e8i5CBG6WXwyxv81/6hugT35iMVdlxZSf3xIU=; b=Edx4zJsR4nPiaiuXPi2guqVH5PVMy1o1tqf3y6U2COkjsp4a+s+XA7v4I0fazwnkYy YhQ9bkN/yqSmy5nPfKXEWBPx5Lr8OHg7G1Pegvb0dig51S9NSaYARzNT12NpfxLsIW43 HOBWLW7o82bPOo5es90PTOBw0nUDQRRydpjOS6AOM6B+WHSbyQQFqw/y4K9Hjr8VVOmp rHxhgCt0OrGl/BAjkvfosmYHKQ55h7t8DWPTYeCzd+rX6b571+7a2E5x/2vW5kalBKmF Q9P0XL/vx2IaaiJSBAMkw2SLMDm6mZdTnjkRKoSBor0ErBxlfDs2fI8+xG3Kd2Oiatcb uk9Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PuY7wiCYeAFATAm6XHVHd/u7/aLdE2C4EYsTOvC2D1+XccEEsbNA F2GRRSo4qxeQndlI3/WPT8Q= X-Google-Smtp-Source: APiQypIQfayY6QEL7i2Fej2/hGTezB6KdGXF4bv2dRGSwUR1WQkE4st9m3zbTsGfi0Tf1gXO8xcurg== X-Received: by 2002:aca:eb51:: with SMTP id j78mr8302624oih.22.1588897720612; Thu, 07 May 2020 17:28:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:150:: with SMTP id 74ls1918120otu.8.gmail; Thu, 07 May 2020 17:28:38 -0700 (PDT) X-Received: by 2002:a9d:d07:: with SMTP id 7mr48715oti.338.1588897717896; Thu, 07 May 2020 17:28:37 -0700 (PDT) X-Original-Sender: umutacar-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:25154 Archived-At: ------=_Part_164_628022483.1588897717365 Content-Type: multipart/alternative; boundary="----=_Part_165_1097041646.1588897717365" ------=_Part_165_1097041646.1588897717365 Content-Type: text/plain; charset="UTF-8" At some point after pandoc version 2.7.2, pandoc started translating code blocks to html from LaTeX sources somewhat differently. For example, the code block ``` \begin{lstlisting} ... 2 (int) \end{lstlisting} ``` used to produce the following html ``` 2 (int) ``` It now produces the following ``` 2 (int) ``` On a browser, the latter renders the code "int" as a html link to itself; the code line is rendered as a link (to itself). Also, because the code anchor id's such as `cb2-4` are not unique (multiple code blocks generate the same id's), clicking on a code line sends the browser to the first instance of that id, usually somewhere up the page. The new translation is also dropping the code line numbers. Any thoughts about what might be going on and suggestions about how this could be fixed? I would be happy with the prior behavior code lines were not assigned anchor tags and were numbered serially. -- 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/49108dd7-3ee5-41b5-9b8c-92c558ff46b5%40googlegroups.com. ------=_Part_165_1097041646.1588897717365 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
At some point after pandoc version 2.7.2, pandoc star= ted translating code blocks to html from LaTeX sources somewhat differently= .=C2=A0=C2=A0

For example,=C2=A0 the code block

```
\begin{lstlisting}=C2=A0
...=
2 (int)=C2=A0
\end{lstlisting}
```
used to produce the following html=C2=A0
```
<a= class=3D"sourceLine" id=3D"cb2-4" title=3D"4"= ;><span class=3D"dv">2</span> (<span class=3D&q= uot;dt">int</span>)=C2=A0=C2=A0
```
I= t now produces the following
```
<span id=3D&quo= t;cb2-4"><a href=3D"#cb2-4"></a><span clas= s=3D"dv">2</span> (<span class=3D"dt">in= t</span>)=C2=A0 </span>
```

= On a browser,=C2=A0 the latter renders the code "int" as a html l= ink to itself; the code line is rendered as a link (to itself).
<= br>
Also, because the code anchor id's such as `cb2-4` are no= t unique (multiple code blocks generate the same id's), clicking on a c= ode line sends the browser to the first instance of that id, usually somewh= ere up the page.

The new translation is also dropp= ing the code line numbers.

Any thoughts about what= might be going on and suggestions about how this could be fixed?=C2=A0 =C2= =A0I would be happy with the prior behavior code lines were not assigned an= chor tags and were numbered serially.=C2=A0=C2=A0

=


--
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/49108dd7-3ee5-41b5-9b8c-92c558ff46b5%40googlegroups.co= m.
------=_Part_165_1097041646.1588897717365-- ------=_Part_164_628022483.1588897717365--