From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26711 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Rule for Horizontal Rule, Table, or YAML delimiter Date: Sun, 01 Nov 2020 21:59:46 +0100 Message-ID: <87eelclrnh.fsf@zeitkraut.de> References: <6a595498-2d21-4a73-833c-5d7e57363833n@googlegroups.com> 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="40887"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBR6D7T6AKGQE2G3H4OY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 01 21:59:55 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f64.google.com ([209.85.221.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kZKSA-000AWG-VC for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 01 Nov 2020 21:59:54 +0100 Original-Received: by mail-wr1-f64.google.com with SMTP id t11sf5597223wrv.10 for ; Sun, 01 Nov 2020 12:59:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1604264394; cv=pass; d=google.com; s=arc-20160816; b=eTBs6SVAbRKxAjdHpT/0RdGzVS1NTmfUJKbBcBAhdt0q2nFGdJA7h+4339A/6E3wCd wYfhI++FsOdkF2S3UuL03J08vMcuErZKNHPHSpqFtgJOXx7xCHsn86Zu/Rm/kPTXbmKo rZdxyk/PeZ+YD401wkynPLdj8criLxNVMD4/iPKi6GaJPMcFWz6U84rh4DIAH/d2x6Jj HsSkA+tKCuuG6ArmvdVwQ3ROuY1Aj+PKDaNWyqSV/ZtiZJp9PmIxM+OlZb/mXD+/Ubpg S174gGlgnzWz1zGZS3uZ9wZ4RD9UU74VwJWAIgQr2H4iePH3L5lXG7AJu3jPuhMstbJD 0hyg== 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:in-reply-to:subject:to:from:references:sender:dkim-signature; bh=fhyooG0fMPKoo6uMAc0kTQOz/YhPvWYY7yCtjWdkLOU=; b=n4MiSjAsBNj9h7dnklBiE4DujkNw/FpHypD/R+TRHYAYtozHEQi1skJQDmcLiGAQLf ZBNhS3ex6cy2Y8xKJfJ5TRzva9+ks9CI0W3OByWuAt9o2FanfgfNAPJ2/p/V404FOSh1 zqvXigplm1TZ82wtYqwlN9qEcTNsjuP0reTlyr6kDkiRCdaW44iF3EIthKo3zYn6H3to KTMuIpI96T3n0yo0oeYV8Rfuee/DX7qTS1utWxLiZs7jwucLphYLoLJELcwey5fsZHHo 28sqc9ZqpnSnT8Z6ZGPSeQU4YIaSdhjwtZ8u8T79HxD8Qk4UHcL0Vvzcbt9OBmmWMTTC wJew== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:references:from:to:subject:in-reply-to: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=fhyooG0fMPKoo6uMAc0kTQOz/YhPvWYY7yCtjWdkLOU=; b=H9N7pTZqOh5BDK7gKM901Ic1d5XcyvLZwaeXaeHUk0D+OKVAdgvS1FKyFxZL990rgG LiHWiDTOV7dRWYAuOhH3UQaUwKTiK0P1oUC8aAEKLT9vri3N3/VzA2Weyqkx/dRecJQu UJ0tAxpTIhokwUigftFdy06Mn05eYpl1XwBQlNm6Vsi9yKfAVM/f2RCFIfFo+hQZrj0w ecFbcYbVDoqGzZbaV4RhSv5scGSGvPvMpiEWnMaj1hpBSr0DcVfaiNzKSb1w/ECTiRK4 Izw/+h9it0jiQOLIukweEfg3DbArJL0AYn9Yhp0XEmrmVT+onv2cZRONWJQorDDXdZ9D 9mKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:references:from:to:subject:in-reply-to :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=fhyooG0fMPKoo6uMAc0kTQOz/YhPvWYY7yCtjWdkLOU=; b=GxQoLzz6LZME/QZlRuJWNNU/US1ux1yUnpd8KkrgeQ+bz5wRu28rIXpOhXrQDvSlPf zAOQ3lpDkrsY07eml3R7QZu4pmuJ88n4cpsLibT8W2mWYUz9gZEh+13NRK70xVrl4hyu OA6HfZcA/98v0AcpKFwyCnVMfZnrDoj6kWqofPrp9hT0gFKUh9KnlQbLa2hqagEDJr9y +vZKUYqu2Tj7NenaxKh1sXd64gUrM7dWRIJ0ueYC/zQdTzTYYraG8DEjiaxXG6dRlIXx gNmoD59Igp/3iN/6JTl0hL6s9CgjG2MbohMaHgYX5BIuMnVT8sAVPFBzHoxHFSywjNki ZUag== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532eoeMWu1k/X5BwGndgrfN0iJMpv2Fr/ZFrqkxHwxlXV3O/B5c2 knEp7MstpToeZ7flTPocBTk= X-Google-Smtp-Source: ABdhPJztGrAyt//eoMoObAcw49pvkOsVHjqzRawtC6eIdov8iDjdV9t5FkMmaIkzU1xpTSnJB9fO7w== X-Received: by 2002:a1c:b1d7:: with SMTP id a206mr14996694wmf.117.1604264394632; Sun, 01 Nov 2020 12:59:54 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:cd8c:: with SMTP id q12ls5373105wrj.0.gmail; Sun, 01 Nov 2020 12:59:51 -0800 (PST) X-Received: by 2002:adf:97cb:: with SMTP id t11mr17330681wrb.292.1604264391303; Sun, 01 Nov 2020 12:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604264391; cv=none; d=google.com; s=arc-20160816; b=LraQxTdpM/XRlE50MEufC+ze1BxezFUjpn6QbaCyucHJu7kPG0NVLPuOpnPLj2O7eG SFxFjtY2RjHaHo3V1lueOymCyNqJmavMHNxK/AI4aLC0eJ+lZQxhp4jJ6N0xCgstFp4h qu1fHGCKjQYcsFvKMn/HpAdX0s0K7a5r/PRngpSDr6cEb2xrqPVMtiuNoYyl6u8+GaRd KLEPbnlcg29Va9zvsA31PvEdS3WJgMAw4/Ujv1ZF4aXgqzTM8M1rQbXyvIDrI4PKFDK3 vc/GIGbDzUIwcqWxydkxQdqJo6O4EqetkqrN2sJUCwuB7WRgnrbjcE9/4H27QybLHd5D UOJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:in-reply-to:subject:to:from:references; bh=baaLCJrJ1XPDgrk62rz55xI2jyoAUqXN/4SO08a7J1I=; b=cBYvBTfFh+S5pyhXGhQVcifrKfRYbVpCi1SC+0R/3o4PNQBocVopYYZSZ4GU9w42FF 4IdWXX11kjeR/quPLDqBhJgF96pHeBi+G8JMm01Ue44VBBKOrLtwNIzuTQXluFIQdizM TxGHJlQwe7KaYuKs+alWvgN7CBKVUJM/HNsI8hP1QO+hyUFx2ho/2ioVis0O7A/RLrOj B32AL152KgC/W2Jt5LmkLohkC4KHF+ad/U82lVme6ocbUjXC0hVICXPCsDjy2X+pkY1m Giki/C+cgS0K3Sow2BHPAt1VP4x2RoS0Tpd3gXVxZWdZeWqZDrIPLYpLHCXb/LDn2gpv /6tw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [80.241.56.151]) by gmr-mx.google.com with ESMTPS id f131si223667wme.1.2020.11.01.12.59.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 12:59:51 -0800 (PST) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) client-ip=80.241.56.151; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4CPT2G6N7bzQjy2 for ; Sun, 1 Nov 2020 21:59:50 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id umTfKDODOkKk for ; Sun, 1 Nov 2020 21:59:47 +0100 (CET) In-reply-to: <6a595498-2d21-4a73-833c-5d7e57363833n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Score: -3.18 / 15.00 / 15.00 X-Rspamd-Queue-Id: AB59D14AF X-Rspamd-UID: 2962de X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.151 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org 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:26711 Archived-At: Pranesh Prakash writes: > Dear all, > This e-mail is prompted by troubles my text editor had been having with > understanding Pandoc syntax regarding `---`. I then realized I didn't know > the precise rules myself. > > I'd like to know how Pandoc distinguishes between `---` as a horizontal > rule, as a table row demarcator for simple_tables, or as a YAML metadata > block delimiter. There is even a fourth possibility: as part of a setext header: fun --- Pandoc uses the following order, trying the next only if the previous failed: YAML block, header, table, hrule. So basically, all other alternative take precedence, and treating it as a horizontal rule is the last resort. What might be missing from the docs is that the `---` line may not be followed by a blank line when demarking a YAML block. Does that answer your question? -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124