From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30688 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pandoc doesn't insert newlines in Date: Mon, 06 Jun 2022 10:01:11 -0700 Message-ID: References: <8efdb324-3ae6-4e63-b653-527984b5a133n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27971"; mail-complaints-to="usenet@ciao.gmane.io" To: Hirrolot , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBW7F7CKAMGQENGKFYWI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 06 19:01:19 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f60.google.com ([209.85.166.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nyG6Q-0006xf-Ql for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Jun 2022 19:01:18 +0200 Original-Received: by mail-io1-f60.google.com with SMTP id s145-20020a6b2c97000000b006692e678769sf2921158ios.21 for ; Mon, 06 Jun 2022 10:01:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654534877; cv=pass; d=google.com; s=arc-20160816; b=Fg+jaA2trRFYwdOxZ87j5wi6a3/9P06vSFB0FsSlzkFWWFi+zDOKbL796scLhm25bQ y4SNTGzYctPSlEMAZKi5aI/mcynGCdQyccRuazPkOkrU4pODtl5mHMpM03mqkQ2ug4NY CNxYomZTas/52+vnk98YI3vug1zPwbw1mZG/XG43+7qh+GbmE+Q/wPwm5vzdOMkUZAQM FX73A38Do3jVMOjVczT4Iay+CjJYhXQdbAzGfhEsAqwROSne01+n78YgrrlqbJx37HTy lRNbcG36yfc8ILC0FpL876e0VL/Jd1r/hM+c8ZHS/mX/H+YCpbONrDr27kcmoRBNsUyX QZCA== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=sjKAd/XF1zlCo47rZIzetKPUzwqcFFfSH1x2vy+Qenw=; b=mE7eZuKSKcXcw8RCIGDoXx6OxIlTrqKl76ocFVgXe/PenuoKK/bHboKPlRxqhu9PSC YWRH03/g3bvjvuLOdldteNGDKB0AXB1UOpoX5DeWiRTbc8FUYPBGyKYfjNIgYE5GzJ+/ d0BbAFLZOCO7QuxD+bIFbQIPJ2Zx2s1EeKsyNtQ0qZVCYXg+CG+Yx2SXpeH8rsjqUiaH VsdCgABNv9ixLlc0a6rv5seVPwYzJY56eiGQxaKwOLrigo26PFXwtnun9AzpwJjA+XHF yNVfODc9tZb9RwM9U9LeO6jq672m16LsKUQDLqM8S6e+qCFcdZGprMwoMKT2Rqsjf+1j 6LtA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=DZN0FUYU; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding: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=sjKAd/XF1zlCo47rZIzetKPUzwqcFFfSH1x2vy+Qenw=; b=LwNtcbWX0/Nys3UUrdsO2hPjcyrnz++fxlNjUFnqvjjcOx/lHxLwHNhyF8ostLEI47 qdVTiD8FdbnS/3H/oXSX/7G5nYvTgpVgx09qQ5TeaCZ7LrdQlGgqnYYtoeu2Rq1OFeoH bUZy5fujCSxIYTz1b0QQmMUsouoape4qie+5bIvs8F81g2I7eEFVVv3mEBYu/kT2BJ7R rnyIUN2NcHIw5O+wktckCKQYrGrUV24mQEm4m1KrPAcZDLacqHiEfjHCtYrAK79hG/9L SJC/IlL2jmsw0tW9J4EggpXjYsn4leQaINH4J/Z/ujt5+cAS60LYk/273p0ukrQn7cOf 3xHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :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=sjKAd/XF1zlCo47rZIzetKPUzwqcFFfSH1x2vy+Qenw=; b=PA4+JgfVuzlRJ83xBiqS/wnmiAn0644JN5P8zzofyILpgMYwLjNKXieNIlKrvEZvNB z+V/tkyq9BMJTsQq9Cexxc9f5RD2qZM5w64VlSQplS7OkeWJxJdOh7Sxvb8bZfh8fQ6b 8SDVKgebpgDpMfW/8dLRIMwI7ogVgU2jnUXuHPuVSiekdOog/aQovPaE5pYDKgjdAZJF g+dVRYxnYdaw8QN1BkNCcraVlPvN/lX3d+hZjoQ0a5Z3u766tDXjjDdi4HsTvSOGj/TG s+SVt+859Xc/fJ1CFa4GXYXvwtv7Y4/WdK6034aJltGC3gDURF3rlnPaV+4In2UPPJ6h Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532cVViG+fJKBZSw8WpJr5roeIsABX0Tm3XHFT6eUsgpe/sRbWqD EVI/XH8oCFxq6jfSEbhmvc8= X-Google-Smtp-Source: ABdhPJyt0osrMPlnrcFf9VrL853rG08pXM+XFYlaUXthAOwQ+KsEjKirnEqRZRH3JEsGcT+9NZyiRQ== X-Received: by 2002:a05:6602:22d8:b0:669:468d:a014 with SMTP id e24-20020a05660222d800b00669468da014mr4892797ioe.124.1654534877751; Mon, 06 Jun 2022 10:01:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:d8c:b0:2d0:f9a5:d4c0 with SMTP id i12-20020a056e020d8c00b002d0f9a5d4c0ls374293ilj.8.gmail; Mon, 06 Jun 2022 10:01:15 -0700 (PDT) X-Received: by 2002:a92:d5cf:0:b0:2d1:d9b0:d5b1 with SMTP id d15-20020a92d5cf000000b002d1d9b0d5b1mr13167204ilq.252.1654534875135; Mon, 06 Jun 2022 10:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654534875; cv=none; d=google.com; s=arc-20160816; b=cQ7GFoOnZ27LZNVdpjbb226DKyBK79EOrKjYAh39rXxknEuT+eJlY1MBABJ+BeQnX6 Ce/VWWiEt6vqK4QcaYJcP4/TbNnybix8RRcyZXQ8KYD6loE7e4m5m71u01gOcbASXPk4 5+bdvuKRNsaWQsRXFHoGQ1lRcQ0UIOYZA6GIltBjjee+s/bLPZ36kJTA8CqcIsgNIVZH OOV1FXc7t8O6oECHkyOiYFr5EhD+IOb/s5KW38PMi+Nm6Ls8s+pA8zy6W5oa3ULbLXLn I6S9MqTxaUDlO6YSKAzm83kiKduM5lRZlUW49pXVzVisaFlyRaRyhZDoEdF5hMoUgJKW kjFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=lRbo/+xlCh3DtnA9in89DCJIfJVeUyANLrGLTQbEFlg=; b=pBT5N6hvJeW5bTdas4SVnxHeswRXlILV9E2xXiVZWm/c4vpQPZzBan0VZ2+j720MfQ 0SpebmKhrnA/zZj38iFtVAtVlvJXhvb4XAsaDJzvvfynk9jhkPo7RTyL9XfXCcjanO3I m1BsLrdTPFCcASBeMKUabMU5bOFt4L9TcrNYWFX9psR8AMkgHqgVX87NorWlYZwKgL0n 8vES8MrX/YBcisPq8ccBGzze58pw0TpUgr/ZRmL5ypMmS1wilIoYoHQM9GgOD596BYAK mgdmYuJkQogna9q5F2Q9DJo+JXg7kVmFDWzRQZ86hl2EAd+MYfYIuzqXz9ogXLR3q7xS 913A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=DZN0FUYU; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu Original-Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com. [2607:f8b0:4864:20::1033]) by gmr-mx.google.com with ESMTPS id e16-20020a926910000000b002cc062dcde7si649712ilc.0.2022.06.06.10.01.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jun 2022 10:01:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) client-ip=2607:f8b0:4864:20::1033; Original-Received: by mail-pj1-x1033.google.com with SMTP id a10so13287835pju.3 for ; Mon, 06 Jun 2022 10:01:15 -0700 (PDT) X-Received: by 2002:a17:902:b28b:b0:167:863f:114f with SMTP id u11-20020a170902b28b00b00167863f114fmr3989079plr.90.1654534874085; Mon, 06 Jun 2022 10:01:14 -0700 (PDT) Original-Received: from hermes.johnmacfarlane.net ([45.32.92.108]) by smtp.gmail.com with ESMTPSA id k1-20020a633d01000000b003c619f3d086sm10865141pga.2.2022.06.06.10.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 10:01:13 -0700 (PDT) Original-Received: by hermes.johnmacfarlane.net (sSMTP sendmail emulation); Mon, 06 Jun 2022 10:01:11 -0700 In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=DZN0FUYU; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1033 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=berkeley.edu 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:30688 Archived-At: Sorry, I don't understand. Here's what I see: % pandoc ```{.code} abracadabra abracadabra abracadabra abracadabra abracadabra abracadabra ``` ^D
abracadabra abracadabra
abracadabra abracadabra
abracadabra abracadabra
The newlines are there, as you see. Hirrolot writes: > 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 outp= ut > 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 Grou= ps >>> "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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/CA%2Bg-_mopnyL1iDJnSp0br-0-CP1nfb0Co3KhNawL%3D4Mn%2BHG7Qg%= 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/m2ee01hgko.fsf%40johnmacfarlane.net.