From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31314 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Escape characters silently truncate other text Date: Tue, 30 Aug 2022 14:10:12 -0700 Message-ID: <3EC2D4C1-EA11-46E5-A000-363461CD8A29@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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="24079"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBPPZXGMAMGQEXGWFRCI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Aug 30 23:10:29 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f189.google.com ([209.85.215.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oT8V7-0005yi-SF for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 30 Aug 2022 23:10:25 +0200 Original-Received: by mail-pg1-f189.google.com with SMTP id q14-20020a6557ce000000b0041da9c3c244sf6075655pgr.22 for ; Tue, 30 Aug 2022 14:10:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661893824; cv=pass; d=google.com; s=arc-20160816; b=HcmYlGXHSlfmyD3yI9S74e6BD4OMmdy26JRvFTJXGUSNKlyN8bqumkLnwXUYgXEihu ZY2oFwho45V1JE6dK/v2hLnDCfwk7rHlJy/4tQySi3TrCEskZyPmRJ1QBN+GOv8Bbz45 8UksCP8Ac/q473CcZkZgOADlxX4Loc+QZIVTKZdRVPSnFelU55m+4Nmyn7WXcl4FcBRY HP1D1jZ8hGJC0VaC9sFi1+ZosBuSEBxd8K2AIwZBoEkn+xJ0HUp+a0dXJMjBIYbBPR0w MNK2XAyryaxAFVpWx9ODel00A3y3u7TXdAuQozTrXHgkQwd6gXhi31z07d0yepMtEkk1 ceWw== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=pa3BxGmEiVNHUS3YuqF7meAyMkei9pMOFRtWtw0u8/I=; b=kirhNYZfgvriew8Ja+9JlHHwKZe+o/FZG9J0t6YwASIFuRF0MFr7sHScO1GiZIN7N2 CA88e+Q2ivjQNAI/NuNPcR23GbZMUWSBgpOHjgEh4xDM48jVhSaMm5rfZIMO5ZjFfe7g YbZ01tX9NzU+m593awi3mW6Z/xjYgBIuga8i0eSy17BNM2ezlJPIz6bXxrjmP7hDLygI suw+FVuAVZEmr7dmwo6Ov6Db0AO6huh3IqUuWHHtc3heEVAC/y5XPp92w7nN47e68Tum xKMAg4o9jCVZ8ahjNjag0IyP/MCqMjRcd8ieL1Nby8nXwPcahtqJnKWlM83SD/QPY7J3 Xf0A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J3cuQwy2; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=fiddlosopher-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=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date; bh=pa3BxGmEiVNHUS3YuqF7meAyMkei9pMOFRtWtw0u8/I=; b=UvQuIT015G+ngKWoVvvy3zzi1iuqmshVVCMxRK1pUjj1IWomOSSpFf4UMBhl7lUFeS PsGw6QKge74iSzzLaxj06D4mb8zPsLmYOAbrGwTCHX70T21MeH76J9hAO6p9zpIqRB8L qL/QJ742R1jTkB/28KG4r7khC2zCh6n98RBsxNps/zvTIV4nLe2mOZcK9OEjiiUBqW1g T3rrPgMq3EQlh8zgr7bpH8ZNOAw9xStjVNq2hfXB3fLaNrwI9QGOCwV/nklentD2vdBB 3th1gdEHTl7CFNeotWvPtYUz6ZOUKHg5j3KJuzm75t+KJAcWsLd3tqOyVXSthk+lLupf o0Wg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date; bh=pa3BxGmEiVNHUS3YuqF7meAyMkei9pMOFRtWtw0u8/I=; b=ppfvyNwA0bdBS10o7MTmsKnjRk0reU3dJe8elpeC7S4lT2/PgCwJThXpRwEiSIoNpA C2QztnCZmi7n4q/WPMyuKMrjc4mFYpOxT91Dse5TsAUUgaBqPKQK27e31V22YYsDw0Tw /h/PAyAVCjibknQ7pRax9Bc8HSPWco2F3pDSC6QOKmal/1MaE8GINzqgkuITka3FblIJ r7mmihs/3KTEzF1G5q60qB4Q9E8FiwIMQWeg+pHReclvUZoRZCS5YhUMby8qeu7zu9sX poniVC7AXz0lN2KIMSMEIZMZ6cYWyiKcjdUG+D3ubC5gxuQTDFQ8ZOPNAZ3qiyBp7QFg FJIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date; bh=pa3BxGmEiVNHUS3YuqF7meAyMkei9pMOFRtWtw0u8/I=; b=CQSsOaDsgd9y+eSA8sX5ZaOobCvMQGwVHEZl0F5kED7Q5vQlSpeBVrh84LFBd32obK lRipaTRoPKlwMZmz8EdABQA0dlRB+cKynbIxWJeibvx5CcxKoXSNKOTqbF1HIlE2GYnU /DKaHtH5As2XXYHAw8zHy6ZEmuW6RM64Tj2bx7m7cNdL5ybCA1VTBYOyLuJ2A7woBeBG ILdGeAGcbyGqBorPJhAVrvJUVlBB1kR9myUoOo3l8g6RMqKkLmrq1yXEvfMTuIuM6XYs S3TC8iy9rpd/8QO7bB6i8QeLKnlP2/NcUrKx2rkT Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo0p0FGYgog3tSsZPN8Xv18uQIt1wqKA9eNGykx1j6LGt22yXRnp au6fG9ApUUVylIyichvogBs= X-Google-Smtp-Source: AA6agR7BQdO/45Gd15agApYzCFUVLbBlBxQFVMFuQOOal6xodvULiB/M5dM9HCs1C9dO8EwVnC/UFQ== X-Received: by 2002:a63:8642:0:b0:42b:7f8e:415c with SMTP id x63-20020a638642000000b0042b7f8e415cmr17392762pgd.203.1661893824411; Tue, 30 Aug 2022 14:10:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:2d0:0:b0:429:a63d:a251 with SMTP id 199-20020a6302d0000000b00429a63da251ls6512080pgc.6.-pod-prod-gmail; Tue, 30 Aug 2022 14:10:20 -0700 (PDT) X-Received: by 2002:a63:581d:0:b0:42b:399:f15a with SMTP id m29-20020a63581d000000b0042b0399f15amr19498887pgb.337.1661893820714; Tue, 30 Aug 2022 14:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661893820; cv=none; d=google.com; s=arc-20160816; b=TBFR+/2ekEPAmjvWKux+L+4HzlXniecClLnetU8IkLrG6txIyVCuXqcOludp3vGGmd SHVWId2CSGbLII9IEMDnS7f2aCY0R9CXiL6BFfGdTK/9K1zjYOQedxIPMEvFxutH5y2K EEy01dJYrLLh8DhlMxFVDotlZ5g+kbdpHxaqaTsUfUWRAR8zFABy0Cykmr0+4q33bhQe EMv91NnPCThUFhPZfQwKC5HOROwWlGPHUNrTiNr2WzYkjANyG1VnxOh77qtpiOuHbyYA CQzGZV01MhYCbgYkQQEFmkJhZ2bVG48OXnfgF0J4tclg7tn2F8T4oUxdvvkcNZOX4Oxa kJxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=0VbtC+YL9Mn/WX33G60c+wg3N/Rm/+5+CTIxaJar0qk=; b=yBdwxAlvi3IXcEcDI6uw5EDMK2+fduVD54UTkMgnJa0+Y1SQl40VGZo9H34HIaGpQA G7qGvRzVxcvnCltmNUH6R8IslrR/unJz/ZuvNn1NLnUCKaLeLURtfvr3Oa+1XHf1Rptp ZsF3UKhhzp11TCNdgbux6fsO31P9UOSHtRerQ+xKbBl04Nz/pX6xrwvffE7CuBA35hWM rCnd635FD6GOXbQpRaDfEUBEWY0Th47SQe3luDaByryr6sYPQl0ljqPaQNk6XQBVqRbs M3/8RncbkZh/heSBSK1/Do8GVEXJLRsXECqJsQZOeF9M+P69j54dbhOAOQrm5iYEq/mI qZwQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J3cuQwy2; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com. [2607:f8b0:4864:20::102c]) by gmr-mx.google.com with ESMTPS id k13-20020a170902c40d00b0016bf5c9dfb5si530385plk.12.2022.08.30.14.10.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 14:10:20 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) client-ip=2607:f8b0:4864:20::102c; Original-Received: by mail-pj1-x102c.google.com with SMTP id z3-20020a17090abd8300b001fd803e34f1so10590687pjr.1 for ; Tue, 30 Aug 2022 14:10:20 -0700 (PDT) X-Received: by 2002:a17:902:a502:b0:172:5f2a:9e35 with SMTP id s2-20020a170902a50200b001725f2a9e35mr23176323plq.79.1661893820103; Tue, 30 Aug 2022 14:10:20 -0700 (PDT) Original-Received: from smtpclient.apple (protagoras.phil.berkeley.edu. [128.32.252.45]) by smtp.gmail.com with ESMTPSA id f4-20020a170902ce8400b00172c298ba42sm10208738plg.28.2022.08.30.14.10.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2022 14:10:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J3cuQwy2; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=fiddlosopher-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:31314 Archived-At: pandoc -t native will tell you. \nnewline is being interpreted as a raw LaTeX command. You can disable this by doing `-f markdown-raw_tex` But a better approach is to put code like this in backticks, which guarante= es that it will appear literally. > On Aug 30, 2022, at 2:04 PM, 'amindfv-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org' via pandoc-discuss wrote: >=20 > I've come across what seems to be an unusual bug; one that caused a very = tricky bug elsewhere in a larger program: >=20 > $ cat /tmp/foo.md > here's a string "with a\nnewline\ncharacter" >=20 > what happened to the other stuff? > $ pandoc /tmp/foo.md -o /tmp/foo.html > $ cat /tmp/foo.html >

here=E2=80=99s a string =E2=80=9Cwith a=E2=80=9D

>

what happened to the other stuff?

>=20 > In other words, after the appearance of a "\n", everything is truncated o= n the first line - except the closing quote! >=20 > Tom >=20 > --=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/Yw57XcTYQBSq80ME%40painter.painter. --=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/3EC2D4C1-EA11-46E5-A000-363461CD8A29%40gmail.com.