From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30685 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:49:38 +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="0000000000003e61ef05e0bb2c38" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22204"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCV6DWXH7AIBBD7G6SKAMGQELIDJDOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 06 00:49:57 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f189.google.com ([209.85.208.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nxz4G-0005bm-HD for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Jun 2022 00:49:56 +0200 Original-Received: by mail-lj1-f189.google.com with SMTP id u9-20020a2e91c9000000b0025569a92731sf2031102ljg.3 for ; Sun, 05 Jun 2022 15:49:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654469396; cv=pass; d=google.com; s=arc-20160816; b=uQTWeYVYh0ZZ/5ltB5FTYq4MoVaIjjiwt3NOg7u7pyE5VtFR7RONMXNI5YsTBOCZ4c Ivf/DON0vRY1m9W6kB8KZgelrrJhH9WUAkHSUKoCoGu/ewOHRd4bOsu57/KwPnBP8HKE voBDI7FSedtD1Q3RdvJJmxiCVddFk9naE0nkPJSMHaypqjEFaaGU99tRxWAZM63ltlXo Vuur5ClucFGqjrHWd712e1QXEJZUcsjNz3tPG3BuHAG3D3XLfaXz1B6YZ/VZkIM+g3lp KQkVYK+NSJqow1QNlDuUhunLVYY0NeVEVfD1fQ4IJ9VRccL3mkj7uJAbGnD0URR4kN42 yIzg== 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=OERtgzEhsTDPK+IEY+hpXiHjQy2tcGh4T4GUjUprGLA=; b=xK5BWGOwIF18xv8V63p6dO6Bcv08T9XZysgQ2GgSb8kT1BqNrL2ErOmf1vNmAGDSHr vSbPE2Ri+Fr0mN6nLl0G5BGRKD57N3XT9RLx0OPfzqe13YS9uvsXp3MhFOFcaoC+KIxa FjbHlPeXGBRlz9TgkNYhbvzbLx+nJEnQODYy395WURatXcnPwtb3u98NoliG5/u+lOPz JhEvWP+OtiN+iOnkA1z7R6rq672NCqFMVN8IOF6YsWBlxBHrWoeq5Au906YmbEVsw2LN jU30CBdAxro0MSjlNsAO0fW6W7lcCZOBAoBpxH9c4+Ql514/hQpp0WG72/Ec1z+vOcmL s8RQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ggU4xhSY; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 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=OERtgzEhsTDPK+IEY+hpXiHjQy2tcGh4T4GUjUprGLA=; b=gFTkLCVf6rHGezLDcCVqqquk0QAJcAm8swUjx4rHn/4B821OdOdHHs+2/3BMueHngm aj81fRC0VvW78d5qOBL5e+jyuj9gj6JP9CpJpwLuMotwggd6ReRZnL2AawWXxQnEdg5u 1CQJ0/ATJ/V0bnCB6K4xQrPWiYRiyrKB1gWD/Bw0vzaArVyt6GeadyYSne/EdAkzfNaw MlY4Sx9hjTxEZkVx6KdYmMTlThpPbXriwni09w2qRSjGTyBjT47jLNf3mIrr6CbEc8Oh UTwy5FrSFCYmx+FfRk+f659tEu2KUgvn4GcOA8depbhUi8touPjBwYxu4P7CBxE4N0gj /XZA== 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=OERtgzEhsTDPK+IEY+hpXiHjQy2tcGh4T4GUjUprGLA=; b=O3iy1BnXD5KdbyWTds9DXpCW5R46SVwcDlOqRXl9VHaX8gRrxvj4CqOO2cTx7vVStl GEOd92fGsWkbJB/MRiJVhbyoXbiYO/XO7MBY5S6+DBp7T7jGqYEYb6bkwj0Iq3jB/4jF 3wn4ZltL46aEsniLK2vObIWwNmDdrAjgsEbhnGIbGPEnHxOiTWeAG56IiFHArn1XRD7p rLZB/OKMvOSpIF3UuUbRz/kJWxFo/Eo762NfAEg4B0i5lY7yJ/qm72IAWZS+3BoeEqNX ICRE3pQQDnClPkH8TNduCKhMl9DAE0yIPxnHuZCUHEfXTfRACaRGGFf/iQo80jNIk1vP bisw== 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=OERtgzEhsTDPK+IEY+hpXiHjQy2tcGh4T4GUjUprGLA=; b=RiZz/4q+/mgiJ56vCrevOkGQO2X9p4+6oL6o0bOXzCq6+LyOnZ00BtOFhRVKyrMFih fMLlPXvB3inKXddXgB6KvRvc8UXQTV3tbte+jDUF5zwbpxKhnPQwEqax2a5LOUEO3nTV JxiussQi+Y8uMu6518UwDF0e/SPas8RVkx/B0WKvodwduRbA4zoe+KixLlBgkoFyGZld zXk/I7tKCCUZ1/HrlZv4pdeIEZQm5/AJMgXazplBVY6WdM3EPQxtYLqBZOGgVeIBLRdx 0kuAWln2FWgb2nSxVTMbT7A/9q4zuAFOCUyHd6GFC63vIQ5xCPFWHValMDVJehReS0MD qNKg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531laOulj+93qBEcJBNNnGpOg63q2p3AxK6sWk9bk7KSCVNxLJ9C DphZjp+gTCJYXOXFWpAuJ+I= X-Google-Smtp-Source: ABdhPJywGpIhVRJViwyRH0m7D6tauDF5Ig6o1o5MTpLz3oeNKVCinBzZNOoni1CTsku7YegpzJ3X+Q== X-Received: by 2002:ac2:4e0f:0:b0:478:e0ca:beb9 with SMTP id e15-20020ac24e0f000000b00478e0cabeb9mr13784031lfr.115.1654469395840; Sun, 05 Jun 2022 15:49:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3f16:b0:449:f5bf:6f6a with SMTP id y22-20020a0565123f1600b00449f5bf6f6als96516lfa.2.gmail; Sun, 05 Jun 2022 15:49:50 -0700 (PDT) X-Received: by 2002:a05:6512:1381:b0:479:992:bfb0 with SMTP id p1-20020a056512138100b004790992bfb0mr14198956lfa.150.1654469390167; Sun, 05 Jun 2022 15:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654469390; cv=none; d=google.com; s=arc-20160816; b=diVzuVPZFNF+Biqb/N7QQBBVHOpi83zOvCxea1LL7Mq6R+9uo6oLbzaYAygBKjtVVy fijm/i/z65nkpHp0Je+tZ/XOda+2MRKMstny7PaJmX5buMIaBz1stzuGytLzCckpFznF Abuor5wNKDh4x919JxAJxhSmmsS4hgmlVu9Jj9fBwFcHdFDW21pg17yuv1H1iOYIHMUt 7Y/p5pOYzWwIdJ3npmAyO5vcPSIgqNM2fDoM59T29XnXSJEDWlEZDPvKsbpuecBZ6HtG xzYldD4UoeOLqN0OhBClJGmI/Yo7DnnA/298QczCbZZa2J/15AvlVEbM7fw2K2cMymu2 SccA== 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=pinR+/YNXaI0cK2LX382kCwK50IKvsM7PX0E8WBfFhM=; b=bcAaCQ3TB1p6CLSz6gDmDhb2WCCJqfvNqG0JS5fijjLiPlGe25Y2ChatVwvpZDQGes kJ+Kk/vj8r5ydApPOqGViDXl2Gei/57OC7sX2KUsc+CO6lD2iTtaGDOeeKH12b2IceRq DsTCNFYdKWXA3Fa8bVMlHp/Nh/p+WFEPJ8y1uuCqDb7IKI5Wivj83+rUfIJgKzINENmn lkl5g7glkjlys+6dzI2krrd/Mz8+ogKdZqTt2qGgxYEirlUFivVoDWvewZwT6vFZtz3r 1NEOqRAPdT4W3KwLTGqznp7o2115UZLl/xBSRqlGqLOb0yQ3Js2F/TRrHEZdPGlZHJ3a xK9g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ggU4xhSY; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 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-x436.google.com (mail-wr1-x436.google.com. [2a00:1450:4864:20::436]) by gmr-mx.google.com with ESMTPS id p6-20020a056512138600b0047902622409si674416lfa.10.2022.06.05.15.49.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Jun 2022 15:49:50 -0700 (PDT) Received-SPF: pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 as permitted sender) client-ip=2a00:1450:4864:20::436; Original-Received: by mail-wr1-x436.google.com with SMTP id q26so7235720wra.1 for ; Sun, 05 Jun 2022 15:49:50 -0700 (PDT) X-Received: by 2002:a5d:64c5:0:b0:218:3fcb:d909 with SMTP id f5-20020a5d64c5000000b002183fcbd909mr1514841wri.308.1654469389344; Sun, 05 Jun 2022 15:49:49 -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=ggU4xhSY; spf=pass (google.com: domain of hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::436 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:30685 Archived-At: --0000000000003e61ef05e0bb2c38 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 b= ut >> 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 withou= t a >>> language (such as the one above), my final code block in HTML just wrap= s 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-b65= 3-527984b5a133n%40googlegroups.com >>> >>> . >>> >> -- >> 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/CADAJKhCFdpRYJwsnF2TPui= emgTeKcmSU7yCXxSxwDtvP4Y5Adg%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-_mrp_5phaWVXavU6kxiF9VMyb23SxNsxJanSFmvNQhgqXA%40mail= .gmail.com. --0000000000003e61ef05e0bb2c38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 t= o do that.

On Mon, Jun 6, 2022 at 4:48 AM Hirrolot <hirrolot-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Unfortunately, specifyi= ng an unknown language doesn't work either. E.g.:

```{.code}
abracadabra abracadabra
abracadabra abrac= adabra
abracadabra abracadabra
```
<= div>
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 class=3D&qu= ot;sourceCode">
<pre class=3D"sourceCode haskell&= quot;>
<code class=3D"sourceCode haskell">...&= lt;/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&qu= ot; (actually a class) on your code blocks, or something else which is unli= kely 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 a= re at


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

```
abracad= abra abracadabra
abracadabra abracadabra
abracadabr= a abracadabra
```

(In reality, the l= ines are much longer.)

Then I style my HTML using = CSS and want to add horizontal scrolling. Specifying a language for the cod= e block works fine because Pandoc automatically inserts newlines I guess. B= ut if the code block is without a language (such as the one above), my fina= l code block in HTML just wraps as ordinary text and I can't fix it.

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

--
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://group= s.google.com/d/msgid/pandoc-discuss/CA%2Bg-_mrp_5phaWVXavU6kxiF9VMyb23SxNsx= JanSFmvNQhgqXA%40mail.gmail.com.
--0000000000003e61ef05e0bb2c38--