From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30684 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:48:37 +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="000000000000a151b905e0bb283a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17484"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCV6DWXH7AIBBUXF6SKAMGQERNLRR5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 06 00:48:54 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f58.google.com ([209.85.208.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nxz3F-0004LV-PH for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Jun 2022 00:48:53 +0200 Original-Received: by mail-ed1-f58.google.com with SMTP id g3-20020a056402320300b0042dc956d80esf9268251eda.14 for ; Sun, 05 Jun 2022 15:48:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654469333; cv=pass; d=google.com; s=arc-20160816; b=xCN4GiXSNBk2dzVce+ZnBn1uZAN0whG9a+jj2sODuh/ry6jHABu9SbJSsT/HpVbhQd VZVZ3P84xJAa8FdXSGKbz8t02vNVBXHEF7iy+1q45kDIWAglzF3nSEkCshD1i2zJ+cAD J5JGcj2w2k9I24EChPSzgp6MSKKEWEKzd6A0dOeGYebVq+Ak45JSIEP2p3uganQXoP24 PNGb7I/AMclHk/DzIPmeihWD51BdU/K2xFa2YiQPoiIIklUMjVzm/Py+WRLhB3eAN8dt WA1dXDdxzPiQMjL0h5pc4MKFVhxrsRLKPEp/JbaocuXs/Z+8TH/JbEoVhpcXWvg5k4zt muJw== 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=kbNkBQ4W6Hs6IdAJ0FpdB/cdIvVmtZ+dSqALcQUd4ak=; b=H0ALofS9WfUMqdnsaYC/ykXez9UhcwrpuHlS9B+HrH7i6l2AuzyDbn8kXjjFxT4Uwg QJSKs69mFgSPFrZsM1PONZxdPt63wxyYVfpYPAQ5jVl93ANDWMTd8cXwxhe8uxRiqdV/ 8cPyqxbOBKFAOb+iELnFjP3quXIK1ohBUXHdliMtBNIKLnQ47B8QCTAvQCHy6elv5C5L B65L+EkmmPc7AyyE0AnHrBI1hqH4Qf9YeEcspF3SyhatlsQs/4aYyiMOMHMmNAVeJkSB AqCCRKKi0FOoLxj27HAsBouxqvKReP9ZR83jChDkoEuoFCEM89clxRnQk+KnY1aRP0xU G4CA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mNz0DGW6; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42a 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=kbNkBQ4W6Hs6IdAJ0FpdB/cdIvVmtZ+dSqALcQUd4ak=; b=Kg4u05xX1bgqPAOS4QD/4eKwJzmQM058YeD+pceiR96sSvZ9Ps8PYLP/eZJTRnVLet mcb5fA2pQiyAwga5ouGJ8EL0/E2f/rJyC2qfs0WEOuywZAGjQ/lf5VeSpuKZNM/f2aFL odKJyFCILw/+MBkKnVc5uCSLKF7vSFHAAzpTlxctdcuDdJ2CS7PUV4m5yloz/3PjV2AT 26UEOOvKUC+b9XQ4WRzljzE6ga1OtwrhCyc3OwpGUDSwEO6tdY+rXhXelSenMXXNxAej ndlWRplyhBpoJCUPKu04Loo33KWiMnUKWEyAWc2K2K30NzAi1UFOvg6mln7kR3BqDnKI a9bg== 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=kbNkBQ4W6Hs6IdAJ0FpdB/cdIvVmtZ+dSqALcQUd4ak=; b=kc/zLEPVJjRTHtbp5DLZ/zSAsjCjbz44Tkpo7gvlrgur4XG2eIPmbxX1gwVhjRqVof Tl678jXzXreuULsjm2HPqqE+vf2npTTQ6BMFOhLdKJDx/+KuTrgWUC5rgabSInAsEJg9 HzIkq8NKKgGoZFFXxqsIqs0qITPWpg1i85GMm6T2f5Gk+BlYR1XLBMSQ2vQs97ECDBFz 6kkwZ2PLPdNIcIeMJI9l5T0tZfmSvoZq8s0cHom4+sgreekQvVI6o21uUwWTFUmPLX9Z EB3T273gfgI+VmTfcayfu/85beiacfJq/prKYQYqq7zWPkPvH/AZ/AGCXRFde0qs+Pnb OFsw== 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=kbNkBQ4W6Hs6IdAJ0FpdB/cdIvVmtZ+dSqALcQUd4ak=; b=OybXBTRzZHAqRYnpFAKZ2EzXJ9TpYaZU1af8834lYsYXaFEObZPFePLdyLVvot90oZ GnCEGnAUEQVLqw9MjQUGaDD8BAHNiZC4nUGCQV57NffuTTse1rwL1zclqS0blkStT6lx Nr/1lWXY7B+ZfEPoQzbWESUtcrG/ASSXcVv64zTZub01R0yh4jy/p7nOzo8d1i0Adj8F fPWqKfEdPSj3tN69oJ6WRLj7fZhTW7uHXlgZVw+H45cN/k8xOvjbMZcamKFRZMlQjxHo ui7kpoTv6r6k0s2FPyUPSOp8AB/aGsP3jIcYMy3hJmdAfbE42DTRvvo+wQbzMGnUMIxb qCpw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532o9YS9IErJ7PnFYd2EfFqiG35sUGLOVvjSzQTcqlhgQUXinw26 s4AEeGk/WDyTPgmxoRI8gdc= X-Google-Smtp-Source: ABdhPJycg1498GIwR/ASBTppZvoveC64bQrz5XIpMvqQutO2ygBtmtXszneOTRqqLUo9RoPzimD2uQ== X-Received: by 2002:a05:6402:c08:b0:42d:d005:13c1 with SMTP id co8-20020a0564020c0800b0042dd00513c1mr23205494edb.187.1654469333454; Sun, 05 Jun 2022 15:48:53 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:d1c:b0:70e:611f:3585 with SMTP id gn28-20020a1709070d1c00b0070e611f3585ls92941ejc.8.gmail; Sun, 05 Jun 2022 15:48:49 -0700 (PDT) X-Received: by 2002:a17:907:7f21:b0:6ff:10b:9cee with SMTP id qf33-20020a1709077f2100b006ff010b9ceemr18878868ejc.302.1654469329155; Sun, 05 Jun 2022 15:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654469329; cv=none; d=google.com; s=arc-20160816; b=RX0h+EEHQ8cbQIbcmea8kjGuxTVcBzzmeFytz5I+ZJ0jjU6AuIB7CrUFclBoQ/eFi3 8WXjbaDk9GnX3p2wzSm/rOWbX0OziKn96TKi/Ge58Y6lawIID3+CBZC97y6y7HusQ91f nmRzCntyurM0Ve2Ojyvsgdo8Ze1i6bl/CimUKwx2OpqxGL1qpgOtl3a3hRLxfiPAu7h2 3zP+gLv6Kjwh9HzE6XmgO7aPsYXzoaSXwii7+aKlMZMe70CuvzPN71ZmI0cRd7V+RzqI euJELl/hUQHFWYZ4ET+wHgMn4UngLM2YMImXpZyyMAU5fXFoF9W0TPbgHql/3vARK0WX 4KUg== 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=JA0PEIZ5sYq61Gj+KR/lEVclb3jx7ftDprX+iI2FWwc=; b=fSI7r0cZbZrZ/hDHHCTio96He6U6p9lqUCi0MxDSEbqdmNc/qibnlDz9c6olvbVAfg bYMnbSfF/e3dIoJJZofu5eUGnyPllP8WCwCXVnLN39aT+7PXw4Dv1qhpbPvPdEfXTYsf veSv3B3pLME8Z7lsxp63gRj+OR1VdSMW+V3skoccpghk1GsW/93JiJbaLPPmu4jqBXim bUPKoA8evJLIF0HYFK4ETIeFg80XLTv8XVYT+SKASQsT9nC4ttQSCLT+rIvIAe89mUxI kGbfuSu8pzdRedyg5DDY9UWzJIIa77tbwuQdpzD82zxl7EdKI+yeSUv9JSRBz7v6DrYr 5ESw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mNz0DGW6; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42a 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-x42a.google.com (mail-wr1-x42a.google.com. [2a00:1450:4864:20::42a]) by gmr-mx.google.com with ESMTPS id m7-20020aa7d347000000b0042dd1db7093si537960edr.5.2022.06.05.15.48.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Jun 2022 15:48:49 -0700 (PDT) Received-SPF: pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42a as permitted sender) client-ip=2a00:1450:4864:20::42a; Original-Received: by mail-wr1-x42a.google.com with SMTP id k19so17593677wrd.8 for ; Sun, 05 Jun 2022 15:48:49 -0700 (PDT) X-Received: by 2002:a5d:6dc6:0:b0:215:5d11:30fa with SMTP id d6-20020a5d6dc6000000b002155d1130famr11876502wrz.688.1654469328719; Sun, 05 Jun 2022 15:48:48 -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=mNz0DGW6; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::42a 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:30684 Archived-At: --000000000000a151b905e0bb283a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 bu= t > 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 without= a >> language (such as the one above), my final code block in HTML just wraps= 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 Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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-b653= -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/CADAJKhCFdpRYJwsnF2TPuie= mgTeKcmSU7yCXxSxwDtvP4Y5Adg%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-_mopnyL1iDJnSp0br-0-CP1nfb0Co3KhNawL%3D4Mn%2BHG7Qg%40= mail.gmail.com. --000000000000a151b905e0bb283a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Unfortunately, specifying an unknown language doesn't = work either. E.g.:

```{.code}
abracadabra= abracadabra
abracadabra abracadabra
abracadabra ab= racadabra
```

Outputs somethin= g like:

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

Without newline= s. However, if I change `code` to e.g. `haskell`, the output would be:

<div class=3D"sourceCode">
&= lt;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` a= s a "language" (actually a class) on your code blocks, or somethi= ng 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 ignor= e it.

The details about attrib= utes on code blocks are at


Den s=C3=B6n 5 juni 2022 06:41Hirrolot <hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>= skrev:
I use Pa= ndoc to convert MD files to HTML. Inside MD, I use this:

```
abracadabra abracadabra
abracadabra abracadabra
abracadabra abracadabra
```

<= div>(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 inser= ts newlines I guess. But if the code block is without a language (such as t= he one above), my final code block in HTML just wraps 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 &= 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://g= roups.google.com/d/msgid/pandoc-discuss/CA%2Bg-_mopnyL1iDJnSp0br-0-CP1nfb0C= o3KhNawL%3D4Mn%2BHG7Qg%40mail.gmail.com.
--000000000000a151b905e0bb283a--