From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30686 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hirrolot Newsgroups: gmane.text.pandoc Subject: Re: Pandoc doesn't insert newlines in Date: Mon, 6 Jun 2022 04:54:33 +0600 Message-ID: References: <8efdb324-3ae6-4e63-b653-527984b5a133n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d44c4005e0bb3d7c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3707"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCV6DWXH7AIBBNXI6SKAMGQEE3BAKBY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 06 00:54:50 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f192.google.com ([209.85.208.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nxz90-0000oP-5P for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Jun 2022 00:54:50 +0200 Original-Received: by mail-lj1-f192.google.com with SMTP id e3-20020a2e9303000000b00249765c005csf2040048ljh.17 for ; Sun, 05 Jun 2022 15:54:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654469689; cv=pass; d=google.com; s=arc-20160816; b=xE2qmYZp7pdDKXNUtUY1+TVzyBbS1lelWb25YzxJw2CoU/IdzxBV2YL+Etg3vZGtGd OU4RzExorB7aHjT8cRtlvOVGK14qgFFOT0R/Lzw4/Cuer+G5IfFqVRVQz8+Fgl3rQ/za YwI1EK5MBBfQFQAq6aWwrhMpzpqv7SOpSHLyh3PN98sq5Rour1/J6zJAQ6qc0j/O76ee L/lPqi/tqYmxuMnrsUrouDPRwOKcwKdvrAhgWlVf17s1h9lzXsAmaFNLyYC8DA/Yck4h F+V3ap4WkoiGytcw7YQOxVxgg17A99qFjUldTlEBvHGbDOZPMf1oej1f/HteoyrsNJOK 8VMA== 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=aGI7PlLbj0ZO1LZjGU+E4r6C0clbm93QjfdQNkOqk+c=; b=pDzucZCH0DnBcaanK0TzEv48Yn8zIcUQc+0gKufSBV88VcifbP8T+8nu5ULSsVa6o1 cXI2rEGdO8Vb4zpsvflNi/vizdNjCXES+qXUSgkCR0SQUO7do7x/uYIwPbEMA+XNeA5Y 50R/6RoemEWnkV2PWmOTUEIxnKdnu1itZIS66rLpD9NtDYfPpj2ZEz7SVwGBI+Nn5Bv/ ir5aUrTlfNnBQfob5PRHfruTXJ2+x9388WjHsHx8Jf2kI6nSpc21EebwQtZk/wPKsmWu bif6IArypvr8FM+shA8vLT8BxTT7NL4e2Vs7ByO8SNzMjGWq8NyaOJw5n6CbtX8GYSAH O26g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qaUQdimt; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42d as permitted sender) smtp.mailfrom=hirrolot-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=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=aGI7PlLbj0ZO1LZjGU+E4r6C0clbm93QjfdQNkOqk+c=; b=n59xt9DWQ0mw4jDMTgoJ01PNsv7Ouz5rR2JgIWt6GXBqp1h40XtpLphrL5aaUZydO3 TnuifiSHOaHKL50TcNIRGfUpmbzs64Tg+Q+gYDyU29npVSlRsEWswSR2Wvm9i4foWPJ8 gFt9uXjo1lKknNmrtAhhu49lZLWq/wWD8+mBKuxx1aGkZHWWimVPeNq12AL9slOcEqKJ ixYdzYn75QLsjWDDLQLqo9FGZAvIbt9hafP/mNMcGUOTlGafqFFmDEEMZ7zW3LVW/3FD p7ID+BAE7833DgZOtrlsbRiEGATHqJvxHqI7wNhVj2CTB7nWxMYT/iVWw6LO9j0r9h97 rwjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=aGI7PlLbj0ZO1LZjGU+E4r6C0clbm93QjfdQNkOqk+c=; b=iVnT8a6kYXjpNH8kUAiCpljirVpvhBdGLAAN7iWSnxrwrIBptUZEsLN2bsHvscy/NP 1Sx1DkoPGMYQjEcgFSF5u9bT5Ag3S+uXscqZHsigYqHx39zZX8uxHfwJwr7c+dldxbAo wKhHWkCdEeBjx6eWHuZu1dUbeZ4Q5jTiEQ/A4GkoVYP9FOG0KOKShdK/H9sYpv1cghpR VrNTTxj2H63ixuG1h7McPGoMqGMFFiQ+azShaxwYfp0Ur38pkDaLOeK1E6MJkHBilj1p IIFRZA1+IYKubEnENzPXWbyCk1NoKLnrGzFFWfjrSRU52epjz1PQlqqE3yyign6FQA3P duPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=aGI7PlLbj0ZO1LZjGU+E4r6C0clbm93QjfdQNkOqk+c=; b=VdYbrbeWyl1+9DqUOXMmoXwD2CzUqbdXrlUk0VlQHqxE6liokXUAnsBxBhHIhVByvm HqS9OvKz0eFl+4s3w6afMAENmru4IAgOi+hSU+dlO6hh+Fij2Tbv/h0K6DtRg/ibUMNh bUxkTpNErC1lYZtWX+BJ+etf/rWttegvQeBirLd4uvvTD/MRDI3fqSiPiTpeZuWkwuJz JbkH2zNJGHkNanIQg7CAug/LsknBbai50T4LLnWZrAxr1sA6DYEsVpTA3F5ngYdO0kXT CUvxoyvgz04hBcPEURbC4UPAdZ6PvbZ5+8WgZZpppo/kox2H7fBf5CeJJIvhppyCz180 ySQQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533XOHHEyLWupn4YeD1OBJUHLy3myRl0hZ/q6Vr65RzeXp1HB0tj 0ktCjQhACte+j8lwJlmhNf0= X-Google-Smtp-Source: ABdhPJydxlxTtbEHlj9PeIn5FycA02AvOaPkk3pA5E4INqP63yTnr0UMGi5FqPcohLhgqT8aqBqtvQ== X-Received: by 2002:a05:6512:ba9:b0:478:f1dd:c20a with SMTP id b41-20020a0565120ba900b00478f1ddc20amr20406889lfv.531.1654469689619; Sun, 05 Jun 2022 15:54:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:91cc:0:b0:253:9ae0:be3b with SMTP id u12-20020a2e91cc000000b002539ae0be3bls1117351ljg.10.gmail; Sun, 05 Jun 2022 15:54:45 -0700 (PDT) X-Received: by 2002:a05:651c:160b:b0:24d:a0fa:26cc with SMTP id f11-20020a05651c160b00b0024da0fa26ccmr50644269ljq.150.1654469685267; Sun, 05 Jun 2022 15:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654469685; cv=none; d=google.com; s=arc-20160816; b=VPlTBIy1y50Te/1D0gOd7Qbt0Ty6Htg26XFPvebS+oaZvbXma9WYm6KFvXK5uTnUAw DMMpmj7f/5W6CeCHPzVMAeB1kOGERRDzCWdIKEenaD65xIbJ76ozgzGY0zLPXNsE3HCB EMATP4QAoXiN34rddRX2x4FvCh52iwwe8LAKyT/QPKP8T1J6LJzKo0vcuBl+9Hfwc2if yXEG0SWA1gfNx4eSWywieFmVlRxzS5eHpz7V1SJEqb8G4/6jmGqHbE+ufRgNyMB/m2q8 oDSrD7RjJxMioScBjSOWlgVyCD3H7ujXVrjT12TjY0ggW9Zzvk1Ua+vQDJBpNA/IROcV zxlg== 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=Og9yojA4/3aLy1NQwLMW2Xj/O3Zp+poPJo2tOFtsYXs=; b=b93X8qX/xvrpLAjh2ZLqu9GzL6Zaw92XK4PDzOOv4390fdBM85UGXxnZQmYm5jas/R ChWknb9LcitDxdBaz3b6hM0iAl1/53Wndf2xW1LvPSXIeVDztu4Yv1IxFFZS2tGGqV6V BTQzIkeVTQOIOYvNROfLtD/dFg5SZgw/cizCPvYaz971dqPmN4zVeLsukwA3SVGOvIbc gWmTKlRY6ltfV9dsb/TizQTpDuanD8b0bcUmZStpF667ui15pH6QiKHnl2PhQpldcD+u KWvOfVWfsmSQxMX9eOqIvmE3NQRSkGglc0NzmEz4o6mB5VMP6mK1y/U0YbFNoPvsD0jm Axbg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qaUQdimt; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42d as permitted sender) smtp.mailfrom=hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com. [2a00:1450:4864:20::42d]) by gmr-mx.google.com with ESMTPS id v9-20020a2ea609000000b0025594e68748si103918ljp.4.2022.06.05.15.54.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Jun 2022 15:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42d as permitted sender) client-ip=2a00:1450:4864:20::42d; Original-Received: by mail-wr1-x42d.google.com with SMTP id u8so13281058wrm.13 for ; Sun, 05 Jun 2022 15:54:45 -0700 (PDT) X-Received: by 2002:a05:6000:1acd:b0:20f:d7df:a2a8 with SMTP id i13-20020a0560001acd00b0020fd7dfa2a8mr18445448wry.477.1654469684381; Sun, 05 Jun 2022 15:54:44 -0700 (PDT) In-Reply-To: X-Original-Sender: hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qaUQdimt; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42d as permitted sender) smtp.mailfrom=hirrolot-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:30686 Archived-At: --000000000000d44c4005e0bb3d7c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Just figured out how to do that: ```{.code .numberLines} abracadabra abracadabra abracadabra abracadabra abracadabra abracadabra ``` This is not exactly what I wanted to do, but it is also nice. The new lines are inserted properly. It would be nice to do that without numbered lines also, but personally for me, the issue is resolved. Thank you for your time and excellent project. On Mon, Jun 6, 2022 at 4:49 AM Hirrolot wrote: > If I am able to just turn off syntax highlighting for some code block, > this would be also fine. However, I can't figure out how to do that. > > On Mon, Jun 6, 2022 at 4:48 AM Hirrolot wrote: > >> Unfortunately, specifying an unknown language doesn't work either. E.g.: >> >> ```{.code} >> abracadabra abracadabra >> abracadabra abracadabra >> abracadabra abracadabra >> ``` >> >> Outputs something like: >> >>
...
>> >> Without newlines. However, if I change `code` to e.g. `haskell`, the >> output would be: >> >>
>>
>> ...
>> 
>>
>> >> This includes newlines. >> >> >> On Sun, Jun 5, 2022 at 11:35 PM BPJ wrote: >> >>> Try to use `code` as a "language" (actually a class) on your code >>> blocks, or something else which is unlikely to ever become the name of = a >>> highlighted language. Pandoc will make it a class on the HTML code tag = but >>> will otherwise ignore it. >>> >>> The details about attributes on code blocks are at >>> >>> https://pandoc.org/MANUAL.html#extension-fenced_code_attributes >>> >>> Den s=C3=B6n 5 juni 2022 06:41Hirrolot skrev: >>> >>>> I use Pandoc to convert MD files to HTML. Inside MD, I use this: >>>> >>>> ``` >>>> abracadabra abracadabra >>>> abracadabra abracadabra >>>> abracadabra abracadabra >>>> ``` >>>> >>>> (In reality, the lines are much longer.) >>>> >>>> Then I style my HTML using CSS and want to add horizontal scrolling. >>>> Specifying a language for the code block works fine because Pandoc >>>> automatically inserts newlines I guess. But if the code block is witho= ut a >>>> language (such as the one above), my final code block in HTML just wra= ps as >>>> ordinary text and I can't fix it. >>>> >>>> I tried --wrap=3Dpreserve but with no effect. Any ideas? >>>> >>>> -- >>>> 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/8efdb324-3ae6-4e63-b6= 53-527984b5a133n%40googlegroups.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/CADAJKhCFdpRYJwsnF2TPu= iemgTeKcmSU7yCXxSxwDtvP4Y5Adg%40mail.gmail.com >>> >>> . >>> >> --=20 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 e= mail 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/CA%2Bg-_moZn2u9NZyvLBgnbt9j9b7WO_QGEg%3D5ma49ktkndc8kEA%40ma= il.gmail.com. --000000000000d44c4005e0bb3d7c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just figured out how to do that:

```{.c= ode .numberLines}
abracadabra abracadabra
abracada= bra abracadabra
abracadabra abracadabra
```

This is not exactly what I wanted to do, but it is = also nice. The new lines are inserted properly. It would be nice to do that= without numbered lines also, but personally for me, the issue is resolved.= Thank you for your time and excellent project.

<= br>
On Mon,= Jun 6, 2022 at 4:49 AM Hirrolot <= hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
If I am able to just turn off syntax hig= hlighting for some code block, this would be also fine. However, I can'= t figure out how to do that.

On Mon, Jun 6, 2022 at 4:48 AM Hirrolot <<= a href=3D"mailto:hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target=3D"_blank">hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Unfortunately, specifying an unknown language doesn't wo= rk either. E.g.:

```{.code}
abracadabra a= bracadabra
abracadabra abracadabra
abracadabra abra= cadabra
```

Outputs something = like:

<pre class=3D"code"><code= >...</code></pre>

Without newlines.= However, if I change `code` to e.g. `haskell`, the output would be:
<= div>
<div class=3D"sourceCode">
<= ;pre class=3D"sourceCode haskell">
<code class=3D= "sourceCode haskell">...</code>
</pre>
</div>

This includes newlines.


On Sun, Jun 5, 2022 at 11:35 PM BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Try = to use `code` as a "language" (actually a class) on your code blo= cks, or something else which is unlikely to ever become the name of a highl= ighted language. Pandoc will make it a class on the HTML code tag but will = otherwise ignore it.

The detai= ls about attributes on code blocks are at

=

Den s=C3=B6n 5 juni 2022 06:41Hirrol= ot <hirrolot@gma= il.com> skrev:
I use Pandoc to convert MD files to HTML. Inside MD, I use this:
=
```
abracadabra abracadabra
abracadabra = abracadabra
abracadabra abracadabra
```

(In reality, the lines are much longer.)

Then I style my HTML using CSS and want to add horizontal scrollin= g. Specifying a language for the code block works fine because Pandoc autom= atically inserts newlines I guess. But if the code block is without a langu= age (such as the one above), my final code block in HTML just wraps as ordi= nary text and I can't fix it.

I tried --wrap= =3Dpreserve but with no effect. Any ideas?

--
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 pandoc-discuss+unsubscribe@googlegroups.c= om.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8efdb324-3ae= 6-4e63-b653-527984b5a133n%40googlegroups.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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhCFdpRYJwsnF2= TPuiemgTeKcmSU7yCXxSxwDtvP4Y5Adg%40mail.gmail.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://gro= ups.google.com/d/msgid/pandoc-discuss/CA%2Bg-_moZn2u9NZyvLBgnbt9j9b7WO_QGEg= %3D5ma49ktkndc8kEA%40mail.gmail.com.
--000000000000d44c4005e0bb3d7c--