From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30927 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "John Gabriele" Newsgroups: gmane.text.pandoc Subject: Re: Tildas or backticks for fenced code blocks Date: Tue, 05 Jul 2022 11:50:06 -0400 Message-ID: References: <64334345-f5c7-4871-b3d0-5911b1d49cb5n@googlegroups.com> <87a69vbbar.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25739"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDAMTAXN2AJRBRV3SGLAMGQE2VHBQII-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 05 17:50:34 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o8kor-0006Qw-Rx for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 05 Jul 2022 17:50:33 +0200 Original-Received: by mail-wm1-f64.google.com with SMTP id 18-20020a05600c021200b003a19b2beb0asf3117300wmi.1 for ; Tue, 05 Jul 2022 08:50:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657036233; cv=pass; d=google.com; s=arc-20160816; b=S4fcBAtNjLpnW/0UfDn/3yF1ybDFfwv/MQkcElPEPdjMNRm2C+iOUfAV79tR0c0vFc uvsZYoiGuRr6gek674SjL3Q7hpWM1vg2gI8fXKcFzCgKYXjdAxZvTTMIP1+7l3eVpQV3 9W0cn7dB08FbZjrkUnm5w6DywMn9T75MRM105T9xS3fSc1rR47vUHRVSFFQsjSIyaamG d87f1QPdx4aYh7Pls/kW7NX4JGQ15wyXHp65/k4saRT67ee62XJqFX8M9l0WkcpT7epF O4ZY+FDdaA0N1pRyzO63s+vBEHrnBmjx1QnfbXvnH92KJnvXMQCxW+7pmz4jt5J4uO4t qmoQ== 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:subject:to:from:date :references:in-reply-to:message-id:mime-version:user-agent :feedback-id:sender:dkim-signature; bh=q6I2O0Dncmfyz/ni/JAnSYH3cPpKEajj1r5fL1MpEFk=; b=Rc6SzBrXkFAknELcBfIa52GfrcJYhSxFbqxFUroB05tKn6FkTE6Sw4DjZwxYAVNh4L 5iZ/r/stfK4jkoreXGOKH2iXnfNbrfUm+apBVaIqywDSgojEZwDdAChQiaQP4jbu4uNO p8lJfy6+wuNcQGmhsAJ7nISytj386IIx3Aet3fjuxC9GbYFtiNBxgh8rM01m4qObrz73 NrFeaHIZtgxw8NHB2g+RxErGlYX1/MQx3vQJ9lFQ1/F8VGcCJ41qcJpwXOMBtt9U2URd a/KHZHwBfy7Mh04LAcAiSwSpOEtR04gt2aUdxHtC9tACrSimn6iW+qPPOT3HRqQK97f9 blxA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm3 header.b=MHcvzm+G; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Jr+JOWBo; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:feedback-id:user-agent:mime-version:message-id:in-reply-to :references:date:from:to:subject: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=q6I2O0Dncmfyz/ni/JAnSYH3cPpKEajj1r5fL1MpEFk=; b=TjTFTbap0zdCPRfMB1oN01vNEjm+eG6WsO00lV5+H/sL3UkA60Z00bpwXhghyhoSRF dIZYCWbtf+HQtOS+azKXHVpuUIfX1Z4KAZl7Oy2EhOxLHPyyTglYvibyLiIakoh+jSJg u3IWrYALVQhf9qBceIs2xo+5v6ijkK/qo+ZVxS8SG7tvEny9J4Px02yenZOBfrEPYC3C G7cEwBCGUofkaq5aEsUISxDJSUvLDi5grmLC9piQd6jSTiia8unv86BNdBbkGjWioOrX phF+UpX9t5QJ/jkBBbntJW7gSHJvVcrtjTkhqSgaWZfg1Ynlr9ZeVlF53JXRECJJrz+U nElA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:feedback-id:user-agent:mime-version :message-id:in-reply-to:references:date:from:to:subject :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=q6I2O0Dncmfyz/ni/JAnSYH3cPpKEajj1r5fL1MpEFk=; b=cUKg2OLQUfkWmUaBi/i12k4vYq/cMR7ww11crsbgyCd3ij56YTjZmiEp96doC4465U 8CIyOOw3x2VmqlNSIcyTG7vdkuVN7w5VvdRMFkGPTX5PL8z2ChtBpxPY8agLHEHwa6a5 /8koYnVmbqIygTNAZzyuHs3uOZPTse+KiYnHUjGVhvJzKquB+Tv86L3Q04rjyYpD2hSC dAne7TC6Ti3cfj8C88hPAYGxXCrXhhoal/DvAaqqRNXzs4enXzbYpFEl79iQZVvJdu8T ulKd5IC8XrlF1BubMmgn0yB40KjQ+xQVZpwTzd+8Dxjw6ZFd5yEOrpRDbTvRe0fv2yq3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8goApyl6kqUTW8fqi9Svqi/1Imcd6gfTjTG0weKA5yRq+IAIwb iahOAosLD8MVv4rzlrhlc4c= X-Google-Smtp-Source: AGRyM1uJWKiopgM8QPDAqDsss+UxrqSOM/eNnvR63Wlj+jaanUhqAR0JtmwYWo1xbK19mIbS7r5Bsg== X-Received: by 2002:a5d:5c0c:0:b0:21b:c9cb:f973 with SMTP id cc12-20020a5d5c0c000000b0021bc9cbf973mr31650385wrb.424.1657036233334; Tue, 05 Jul 2022 08:50:33 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1550:b0:3a1:98fb:f102 with SMTP id f16-20020a05600c155000b003a198fbf102ls4518644wmg.0.canary-gmail; Tue, 05 Jul 2022 08:50:29 -0700 (PDT) X-Received: by 2002:a05:600c:2290:b0:3a0:3e42:4f9a with SMTP id 16-20020a05600c229000b003a03e424f9amr38201471wmf.28.1657036229723; Tue, 05 Jul 2022 08:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657036229; cv=none; d=google.com; s=arc-20160816; b=fNLLWzJRUfjT69+ePNT3eL5fLuW0B7FFl2UePTCCohf7wa5R3gHDCam3yLCJCk0a+U cqVeMgZVTP4UtKDWoNLPLjRksqDps7VlInf2dXdXjGSsnUIkTBrcai9CEm5WRmZW01q6 qmhubCr4rVFiHev7FFs4aUafEDFJtTa/6LQZU3Vxr1KQ2ADOEWX4Y0gPeezzaIGAUtux 7qOpiMpf5PStZx6VV534nuY0rS4MMT1O1fO72X3XvgfMZMeZKcbGCdhAEjvYNg/Tw0OQ IusWAWw0r6syGXvh82jImDShY+6gJNtcOufqh6W4wHVIZGmDzoM7XxjFDZMfjJTV3fRS eCGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:feedback-id:dkim-signature:dkim-signature; bh=3OoM+o5P/AuaBtyoSKaKmnao1l79d2lrRBUANqPeOuo=; b=XFJfzv7oCPLyMH8Pd+EnodCXCoZpz2AndLtB0hDdH8kLC6PBgEk0dFuIQ8pPHm5N4H xOJwVaPXQH7YkFQ+1CY9tUJJLJLXpe3Eswer7lmRSj5C974AkO4c7Y+2vFNow/aD0RO3 FH/smkB012IvAtbI6qur8Lc1D3z1A6VgvAMJ/enqvNr9F875Gaj6m7+VDsllVl7KIAZj c6hz2LUla35nXcRnuopgMdgJgHUaG3LzEOj1XegbyTAZzs/quUxzju67dJGovgxPJRrw wodM1Q/Qszkk0AfbxE/p1XH/dAX6pBA+m1LWhEeYsY0xd5859NzXm2H8TPyfwcoGyArr te+Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm3 header.b=MHcvzm+G; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Jr+JOWBo; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Original-Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com. [64.147.123.25]) by gmr-mx.google.com with ESMTPS id bn26-20020a056000061a00b0021d6e648fd1si163889wrb.1.2022.07.05.08.50.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 08:50:29 -0700 (PDT) Received-SPF: pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.25 as permitted sender) client-ip=64.147.123.25; Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id AC7083200943 for ; Tue, 5 Jul 2022 11:50:27 -0400 (EDT) Original-Received: from imap46 ([10.202.2.96]) by compute1.internal (MEProxy); Tue, 05 Jul 2022 11:50:27 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeiuddgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdflohhh nhcuifgrsghrihgvlhgvfdcuoehjghgrsghrihgvlhgvsehfrghsthhmrghilhdrfhhmqe enucggtffrrghtthgvrhhnpeeuuddvgfffieeiiedukeeutedtvefghfejgedtueffkeff ledujeegheevieevudenucffohhmrghinhepghhoohhglhgvrdgtohhmnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhgrggsrhhivghlvges fhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ifd0840a3:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id F0EEF2A20075; Tue, 5 Jul 2022 11:50:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: X-Original-Sender: jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm3 header.b=MHcvzm+G; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=Jr+JOWBo; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm 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:30927 Archived-At: I use the tildes because I think they look better. They're vertically in the middle of the glyph. Backticks are too high up, and so at the top of the fenced block look like they're floating too high up, and at the bottom are cuddled up too tight. They also make it harder to see where leading or trailing blank lines are. -- John On Wed, Jun 29, 2022, at 5:44 PM, John MacFarlane wrote: > That is right. I discussed the idea on the old markdown-discuss > listserv with other markdown implementers at the time, and we > agreed on tildes. > > I believe that at least pandoc and PHP markdown implemented this > syntax. > > Then GitHub came out with their own fenced code block syntax > using backticks (without discussing this or even perhaps being > aware of the tilde syntax). This isn't ideal, really, because it > introduces a syntactic ambiguity between inline code and code > blocks, but it has a certain naturalness, and doesn't require > pressing the shift key. At any rate, it caught on, so pandoc > allowed this form too. I think the tilde form is rarely used > any more. > > Albert Krewinkel writes: > >> name name writes: >> >>> I'm new to Pandoc. From what I have read in the manual, it seems the >>> preferred way to create fenced code blocks is to use tildas, not >>> backticks: >>> >>> ~~~ >>> fenced code block >>> ~~~ >>> >>> What is the exact reason for this? >> >> I believe that fenced code blocks where first introduced in pandoc with >> syntax using tildes; other tools then followed suit, but used the >> now-popular backticks syntax. At least I seem to remember reading >> something along these lines, but I might be completely wrong. >> >> -- >> Albert Krewinkel >> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >> >> -- >> 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/87a69vbbar.fsf%40zeitkraut.de. > > -- > 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/m235fnywju.fsf%40johnmacfarlane.net.