From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29295 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: resulting HTML tables be given IDs? Date: Fri, 24 Sep 2021 19:40:48 +0200 Message-ID: References: <3b04ddd1-260e-1a0c-8896-5c8f04b6101f@reagle.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000477d605ccc14001" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joseph Reagle To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBLU3XCFAMGQE5NWK6SY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 24 19:41:07 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f63.google.com ([209.85.167.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mTpC7-0009Fx-2n for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 24 Sep 2021 19:41:07 +0200 Original-Received: by mail-lf1-f63.google.com with SMTP id v197-20020a1948ce000000b003fc99be7fecsf9838100lfa.2 for ; Fri, 24 Sep 2021 10:41:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632505266; cv=pass; d=google.com; s=arc-20160816; b=yB2KlXqzejxrFF1fewlX3wJDXJhtrT3i3hqfJUYf+RDariai+xqa/pzy/LwMnc0RLE ISrwFH+oGwXKVV3UspTD3DgYTAV4IrBl2UqtD9imtwyZI5nClM9dWRE2kmhU8BsNhVCz CuKKcyBlEPwgDbrRx5lItsH3SNPJw1+UE3uU4avGTBfTDfV5p/4jIWB5H/BlQ9qU8aGZ xAgFzKWDULK6d9JuFcCq4KR5STFvBscFo3LHaAhyOeN7LjQR9IWrghYjhSkm3x8AvP6i xh3yS9oYs8i6FkWou5b2vFupl3BtMaJ5D9rS/VSp+Qo4X/EsLwrnhW4JQQ+i+vKn0geE DfbA== 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:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:sender:dkim-signature; bh=uFkc1/uFEja4LarZJdE3YIdSLClJWQyLXVPgwfQroa4=; b=CzMVVlSnp3dXM+c1bClXKE1YsfNlreZZ5tXit7fGL21IIuIIoxKL3QIPUbWfGUTMh4 F4sYaiL4wa1UaKAqJ3Hkc2ylhWxXjiLQKHHfr90+M/IQKH5X2vk6CBQkZUG33Vxn+ZDA IF55pEYf7buJXsOgzzSweMNGc1wJddL8i+e5dd2LjetQndFOWMwIJGY0Wjl7puGLixal fxQeWYPCKb0IcoeX9hwk9jyNfLLEn9fKvawRXmwJSuAp92szi1NFLP3IfK8TjAga/7Io ec11fl0OdrarckvU1Dsy0XbSvPh/lROxf7zaEGPxfAcWVd2MtKFnqmvNRvJiigjiNVB0 VL6Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.54 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:reply-to:from:date :message-id:subject:to:cc:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=uFkc1/uFEja4LarZJdE3YIdSLClJWQyLXVPgwfQroa4=; b=p75uMQ0PSGfGYgIjDpgdmiq72endX9Ha0/qt+yGVa3fJ03zBEUnhhHE1mIqHW4a21H ns2l7zOZ9ppyYpB2W2DYMO8i5tm1cJQ5pQpNvrr3f/+mD9waNAAjnzLGCLxOlJeoOOZ2 VLQ6V9ZkW9Xm+s26OF75XMEyC5rLyHRIAe/No33HSq858UCS189v3ZTkm0Kx3Pxgu9Gd d6SF71Svnh47exzUJ1+BQgkQ46VtndQePv7fCgM+cVP2qzg3Cvalp6XgHnpbT6sZ/2C5 FMH3iRWR1ry5HLeLLwgyl+HBygP9khERYDooKvRMgGugHZGVKNh72um3aIGokpCTQNay LZxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to :reply-to:from:date:message-id:subject:to:cc:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=uFkc1/uFEja4LarZJdE3YIdSLClJWQyLXVPgwfQroa4=; b=B3YpUdA29frtA5yMS9psblxMm29J+IoNplJt1QUioZqi6dEcek8MNmgqMkQjJEQTHR B+QTjtfg4WyS2SnrCcJxw/y/g63MEFXrsD55uk40Qy0PpEle6aQNk7nX7bUmgR7k3txG AC2BwLVg/7ue35WiLRrJiWg1wA8aHqX4jwwO6x7jbBNXWmJaQQ13gEU/xj7/NoQptATe xXK/NRa4vIxka6R3pD+wgDDTN4uYiPz+SxhgJaUK9W30T5h9UYxkuov7D4585zvKJG3l Mb6hKnZCgRkydlUu+3KaZpshmr0w3s89hu5/fOq946677ojSvXKRR1uhOJEh4ZLBkq5r loKg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530YEJvSi3JmUVU9GILmEjuo+M9C/qxzHGuX2EbInmmhmp/0zC5k mXRZ6GjRtwBhGVIIKPIxj2s= X-Google-Smtp-Source: ABdhPJyB4v1Bw877Xofop8HmR64c9sMsHMp6HmPu08R7dE+G5BXza7dOM4J61Ny01AQThrXk7wRENg== X-Received: by 2002:ac2:5e2b:: with SMTP id o11mr10975119lfg.512.1632505264548; Fri, 24 Sep 2021 10:41:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3a83:: with SMTP id q3ls659435lfu.2.gmail; Fri, 24 Sep 2021 10:40:58 -0700 (PDT) X-Received: by 2002:a05:6512:158b:: with SMTP id bp11mr10804572lfb.188.1632505258850; Fri, 24 Sep 2021 10:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632505258; cv=none; d=google.com; s=arc-20160816; b=0Wy+7nlWc89HRBbnxW0IHXLY1Z+E/EugrsFOAPtiNSadfmV0ESAsZm2XUTui0WB1oU GLYFGcLySrpyj4oC1E/SVFxlCg5+LYUH5WOuiuM02Dnrv+n2Of2Tad9YxSnqTqqIfmHE CLGEPTsljxRk0qt3gYFq9WluFdNSHdmecA1bmeeoQZvY+DieQn8MY0ZwEp01IHJ+Fy7N 0m0Cij7tI8YLmPJVPHJEw5+I/QDlc/6OlOZz/8gMjNlwRnwcFx9SrcEVwpqSuLCytqMA t9ev34YN1fiUOI8sKCoNhsuYznO5kNo1plIx2jjuejtPfhHBgafGdrhrlhTRMr+Jrgbq tYPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version; bh=rievuXNn06acjC/LBmysG99hMo87aqVWzN3LdHH58B8=; b=oSQcOaZcHBTYGtYgvvEGMP4+5oBdXrMkwoO+KajEubR/D3TIGOqsloYkTXDp0zBmOC VLJYdzMnF4rv1VwjjZeR+iqF3r0YNfjOW+Z448HFlrKqJn9smEZ+cju+hsFp/fCkqBZe B9Fj9eAdhA8Aq5ydUXjvmaP0Gl5Q1aKbjBRC7PvKoVrrfNWliNML5241eNW90OKFiDXc bHDHp30C7oYfs1So4NeTTRLrrErDkgC0FgPATKh0PONY5z5709iM2TpwD7X9pQPOsz1+ otw5uD3lwnSTIYgSQ3IMwUcwIe1011UMR89e/bb9X3+OiSJBTqNvid5pEzfa+gs4rHIl sdaw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.54 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Original-Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by gmr-mx.google.com with ESMTPS id t17si560880lfd.9.2021.09.24.10.40.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Sep 2021 10:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.54 as permitted sender) client-ip=209.85.167.54; Original-Received: by mail-lf1-f54.google.com with SMTP id z24so44119123lfu.13 for ; Fri, 24 Sep 2021 10:40:58 -0700 (PDT) X-Received: by 2002:a2e:a232:: with SMTP id i18mr6219229ljm.313.1632505258340; Fri, 24 Sep 2021 10:40:58 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.167.54 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@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:29295 Archived-At: --0000000000000477d605ccc14001 Content-Type: text/plain; charset="UTF-8" If the purpose is to style a table with CSS wrapping the table in a div and using a child selector like `div#my-id table` will work fine. Den fre 24 sep. 2021 07:46John MacFarlane skrev: > > You can put an identifier on part of the capture in the > way you describe, but currently there's no good way to > put an identifier on the Table element itself -- though > the AST now does allow attributes there. > > Well, actually, there is one way, but only in commonmark > with the attributes extension: > > ``` > % pandoc -f commonmark_x > {#mytable} > | This | is | > | --- | -- | > | my | table | > > > > > > > > > > > > > >
Thisis
mytable
> ``` > > Joseph Reagle writes: > > > Just as headings and sections can take automatic fragment identifiers > (and be included in ToCs), has any thought been given (or have I missed) > doing the same for tables/captions? Or is the consensus this is best left > to the author, as in the example below? > > > > # Results > > > > ::: {style="font: 90% 'Airal', sans-serif;"} > > > > : [Table 1]{#table_spins}: Reddit phrases and automated spins > > > > ... > > > > -- > > 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/3b04ddd1-260e-1a0c-8896-5c8f04b6101f%40reagle.org > . > > -- > 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/m2o88i1q8t.fsf%40Johns-Air.hsd1.ca.comcast.net > . > -- 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/CADAJKhCG8MeKBnAhVZJWDMh-41f6wHE%2BLJSmTuDVCs%2BOmA_B7g%40mail.gmail.com. --0000000000000477d605ccc14001 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If the purpose is to style a table with CSS wrapping the = table in a div and using a child selector like `div#my-id table` will work = fine.

Den fre 24 sep. 2021 07:46John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

You can put an identifier on part of the capture in the
way you describe, but currently there's no good way to
put an identifier on the Table element itself -- though
the AST now does allow attributes there.

Well, actually, there is one way, but only in commonmark
with the attributes extension:

```
% pandoc -f commonmark_x
{#mytable}
| This | is |
| ---=C2=A0 | -- |
| my=C2=A0 =C2=A0| table |
<table id=3D"mytable">
<thead>
<tr class=3D"header">
<th>This</th>
<th>is</th>
</tr>
</thead>
<tbody>
<tr class=3D"odd">
<td>my</td>
<td>table</td>
</tr>
</tbody>
</table>
```

Joseph Reagle <joseph.2011-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> writes:

> Just as headings and sections can take automatic fragment identifiers = (and be included in ToCs), has any thought been given (or have I missed) do= ing the same for tables/captions? Or is the consensus this is best left to = the author, as in the example below?
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0# Results
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0::: {style=3D"font: 90% 'Airal'= , sans-serif;"}
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0: [Table 1]{#table_spins}: Reddit phrases an= d automated spins
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0...
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe@googlegr= oups.com.
> To view this discussion on the web visit https://groups.googl= e.com/d/msgid/pandoc-discuss/3b04ddd1-260e-1a0c-8896-5c8f04b6101f%40reagle.= org.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/m2o88i1q8t.fsf%40Johns-Air.hsd1.ca.comcast.net.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhCG8MeKBnAhVZJWDMh-41f6wHE%2BLJ= SmTuDVCs%2BOmA_B7g%40mail.gmail.com.
--0000000000000477d605ccc14001--