From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30873 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Tildas or backticks for fenced code blocks Date: Wed, 29 Jun 2022 23:44:21 +0200 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="40125"; mail-complaints-to="usenet@ciao.gmane.io" To: Albert Krewinkel , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBOMP6OKQMGQETFPFEEA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 29 23:44:28 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f190.google.com ([209.85.166.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o6fU4-000AFS-JI for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 29 Jun 2022 23:44:28 +0200 Original-Received: by mail-il1-f190.google.com with SMTP id k8-20020a056e02156800b002d91998aef7sf9591509ilu.0 for ; Wed, 29 Jun 2022 14:44:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656539067; cv=pass; d=google.com; s=arc-20160816; b=y687TXYiOH7gq6z23A8oJiAdfZh3JqQzSfN49mqLVGuxa1teFA28CZLle1yPc80EcK kY4kOYOnX3FSm0yZqpasV+zXvW/fCHfO/hOxgvpegcyY/Sx3mAQopO67OVixvRUyD0RL ZOevlLpyb3GFX47xqEanEN0VbJF3y3W+9kj3iXuBVv/ytCeoEOLYux15tiA/riuQiBC8 fPrhy5/K9CCbKLTWiu8ZMmDEh3iXj6zREYdZW3iZ1ptQjpqF/mO2sbzsn0yKSMAERHkX UxjdxLehqW4frTt1rvX0QBrd0gAJmAeg9XIC5hZAcwqWQJUwK+LDJ3o8bQV9uMdWjRyl SMZA== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=XMWNNndhTlFPbCR6iN305cTfvRA5eL33oAbf2fufruw=; b=Ue1Cj7b+51sFiaxCK7Pn735QAei94+ALgXSchd1G8GTfpR2ihUqn+FMRZ8h3+dZoTA mPxrBRnl5lTVsDGJYxOsL28eK1PPNTnEnk84KyVzw+TbctWC9McDM+rriZzDqbC/gKju U4FWOkGXDcMybBrxb0QUlgKcQdkHfaN93V6WpB0OV4c3LnNPIgPksKXZKVxR5GTOTdv0 p8XQoTu7OW8JE5NfZ1Sk+vf44j9KT/WiNtXnVd1B3E53laZlDKl3mbqWZFV6tY2blFBO qulsHA3CFtVmMLrPnD2FQrVWutyIHEUmJ0AxyIiyxRd4nE9fj4dimqs/n6Goq0RtflDW zc7A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=N4utE44I; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 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: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=XMWNNndhTlFPbCR6iN305cTfvRA5eL33oAbf2fufruw=; b=oJptQkbdnop1c0prw7+KD4FMC5DlidlZQ9eHe7RO6/Ul4bYwltEslsJ7PHZiafPMdQ bjTI7wD57IuDWd8qm7rW00uFvscqfF57/rc4ZgD5AaKLJvL4WLGPyOVkmG5pYKOHUbE8 F5Ep++KA1SaKkhDyccja0682EkR/goVnIJq/tlRT+bs+U2+d6W2pfcws9v6bdaVVDTQJ zXZ9BROCl4eElS8gVOHfra77VXglNZ6A+UNZIKHdIgaWltRCJF9wHAI+rOgcl/tIKYkU XHABUxAt6WZWLiqlwyLFMYk2XFTFPT8mJJ1Z+mTRjvfRBq15kxNNAjawV1JoCiJjFnH/ j0OQ== 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: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=XMWNNndhTlFPbCR6iN305cTfvRA5eL33oAbf2fufruw=; b=ngy2kI2qtkeEofPvqqNFLAzWA1TtguZvv4ZF9e5Kcbw5jOToyGnzi+yxbdsDQMut86 k+km5CTyLssab3vDUmSmuZ77a5F4tJdUwKDUqWvTvgIhv1xVLUvKfsPWWhKyHfnY0DXB 8eZrB13zJWhaT49j5CZQg2lNKIDAqtr6fCn7AhXql8LUS0m3jhuKheMp5t48JFZ1mb20 E8tQzdIGEIGIcf9OCgIqAoiEmbz6MG3uLYLQK1+d9suCm7trxg7bbgwPTYaNXXB3xExL G5jjDBoP68sClP8Wwte82JFViIz10bGnhPxEbtmrkgHy9Agd/iDjqqzSgaMIY4kPK5TT 5w1Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9+2IcdAkzYxCfA2OsMuChh9o+21PD/1vqpW0c+NHR9JSAcefMm F8fxBV3nqPJfEgq9f38x++I= X-Google-Smtp-Source: AGRyM1vPNzaG3H2CrsgLI/Wr2TDk3C3AVqZc32CnmSmmHg/Gw74W4Q8YeusOK28Pj/B+xtM8r4V12A== X-Received: by 2002:a05:6e02:1e08:b0:2d9:1e04:87bc with SMTP id g8-20020a056e021e0800b002d91e0487bcmr3007427ila.171.1656539067550; Wed, 29 Jun 2022 14:44:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6602:26c1:b0:653:a079:fe6e with SMTP id g1-20020a05660226c100b00653a079fe6els3518316ioo.0.gmail; Wed, 29 Jun 2022 14:44:25 -0700 (PDT) X-Received: by 2002:a6b:cf0d:0:b0:675:955c:eceb with SMTP id o13-20020a6bcf0d000000b00675955cecebmr977359ioa.68.1656539065078; Wed, 29 Jun 2022 14:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656539065; cv=none; d=google.com; s=arc-20160816; b=PwTeOB7eFi3EfArzFV4mr+9j4ttv8n64LhKxNPYL5ZltMlWug4BO395KuJ7LEw305X E5jV7Sw9dDceH/68C50LPD2BgGjzuWOO0MJ5uXtVg18/8etxsEZ6SSniJ03oAvQMnxaJ knRgh1SN5Qen9oRXvs56YFZb7gSCdIoipAs/4wUk5sEdWq56/BU2ywh6MXeNDojuEsdl zI896kYPV6C4itKNReXPojvMaQWIPlutgRbJZF0GlzLcln4B8UPKl8SFNf0SlhVqo1AQ v2tZLUSZirkt0ULe06ZWa4WKSUMsBm+dpHE7SymntqrUn54kB+HOt9MmUrLCwhXEm7Yu am3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=LoWR/wfynoz0AmwED2ik7T/fIDVIgwqxLzRW/ZI0010=; b=D35cbWrwv5etMIydxEDdflTJhvtRCDRbCbHgO/iBWTyq35B/wl9l6atWz2TqcC1Z77 gab2j2KeAe5dloU/r6fyE+KKZk/5zqhbVAY1QmASx3LinW7o/DOyGvmRZTsxhG8QIVCD G5sDuxoW4yOiiVXV9kNOXyNa+TQbnr80q6KEEKQdsM9Bh/SX2WhYL3THBJhcYbwx8leM dw/DrjvWZ+4nkxjN1PH0ltZsKdPBtRKhrKWl50ZW1kSGlUtsoDbRvYtvyKLR3Ynkiljq 604X2zTUaYAQBoCuJ2MOg266bI9bfY+ofyIJpXKCN/9a7BccKEMCYg/Vegf7WpPJpI9c FJ9Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley.edu header.s=google header.b=N4utE44I; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 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-pg1-x533.google.com (mail-pg1-x533.google.com. [2607:f8b0:4864:20::533]) by gmr-mx.google.com with ESMTPS id f10-20020a056e02168a00b002dad0373761si59569ila.0.2022.06.29.14.44.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jun 2022 14:44:25 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) client-ip=2607:f8b0:4864:20::533; Original-Received: by mail-pg1-x533.google.com with SMTP id r66so16572230pgr.2 for ; Wed, 29 Jun 2022 14:44:25 -0700 (PDT) X-Received: by 2002:a63:ee0a:0:b0:40d:2773:16d2 with SMTP id e10-20020a63ee0a000000b0040d277316d2mr4739792pgi.95.1656539064187; Wed, 29 Jun 2022 14:44:24 -0700 (PDT) Original-Received: from hermes.johnmacfarlane.net ([45.32.92.108]) by smtp.gmail.com with ESMTPSA id x19-20020a056a00189300b0051b4e53c487sm12126318pfh.45.2022.06.29.14.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 14:44:23 -0700 (PDT) Original-Received: by hermes.johnmacfarlane.net (sSMTP sendmail emulation); Wed, 29 Jun 2022 14:44:21 -0700 In-Reply-To: <87a69vbbar.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> 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=N4utE44I; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 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:30873 Archived-At: 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.