From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23152 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How to use Attr? Date: Wed, 17 Jul 2019 10:31:28 -0700 Message-ID: References: <3d4a16fc-80f3-4dbb-b7bb-3362cfbcfc81@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="63858"; mail-complaints-to="usenet@blaine.gmane.org" To: Ignat Insarov , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB7VWXXUQKGQEWZKBPPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 17 19:31:44 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk1-f184.google.com ([209.85.221.184]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hnnmK-000GTI-3A for gtp-pandoc-discuss@m.gmane.org; Wed, 17 Jul 2019 19:31:44 +0200 Original-Received: by mail-vk1-f184.google.com with SMTP id x71sf2634840vkd.15 for ; Wed, 17 Jul 2019 10:31:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1563384703; cv=pass; d=google.com; s=arc-20160816; b=aNtz+H6Uj5ywP6f4izXfVtwHUK/cavSB0OG+9wX94LPggWcZ3CS0yeJ4urKxyA02CX NHWfi+6RhlN3zv5Hbhdxw8sDGvWf2wbKq9GgP+k+S9a3Ow+8XloNO560YgaNJltCNe5Z V55bE2ztziCDlHNIz7R5l4KpiyYplBEXQP3ckL+U2WhjviWBkY+CxgMQQ8sqPdtMjdp+ HDnoM7nWJkyLYER8f+8uY7ewZ/xKOILNcou/gT9tkYOU3akhVD6q8uqDXWjGye3wWAhc ukaOngNIKbnreM7sFd8nbUZ/NRn69yC85Ya0pjP0kwsKMJm/T5nobxXGroTmZIQYsMEB 20Zw== 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=9z3F1UFhsc7ahFtiaYseuyUb1vERSuRLyCpaC/GzQW8=; b=j8ezSfTi5309TeaO2Wqpbey5REVPyJoWJwWWD5uZqCVkwAKFtrO2cti8tq1wgMOncO tWGTP1+3P4TkdB0rVmVy+tB+pGy/F1sxMrxQqdvJ649qj2IikVvxciK5n2MuB3MV9iwt 56Tqs5hyM9CyvZ2NagfGxdfcNRkp2XM0MCh0rIU9GggcZSPvJ08ccPAMrNb+vI8VEcnp WjFbanuvNir97pVQ7qZIQ+n8Q5THcK7SaBlvOfMXrM40gXzXy2iUFcflLK9QbJbZITsM /PDPv/DVhj7DXWbisIrm890Cp/443I+oB4YYPdL4WjF1MwV+QYNwnAeg0QJxNVk020M6 ZOxg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="nlOlaU/H"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=9z3F1UFhsc7ahFtiaYseuyUb1vERSuRLyCpaC/GzQW8=; b=cc9niCIfJnRGGlLlk4/QP0/epkyQXKGZcQfsnlhrZyl3ycIeazT9ncXh6Q67+UsO89 ejip8zKgJrvf30b0pnK7ci2T3H55ih0IUsmrc3TY1hOGPKKTxsFui/Itd/k5iI4to1AS +HQWPx30oGN/fDaHmjWciLwhR5+cWJtBUCtzQOFT9Fm5FrEAuvx766+0eQLXtnDMvRQG cggenUoIFYEI3aT+CV8rHzOwXEXnkfmP00qqRf8W/uSlF7tj3VTzo3oVsB4X7YGG/Qpl Nh7JOWBb10k8cHVTJ+SSrR6SHM/S2IrBUrHSDKyyGjCS/WAd82Br+Okj69Gez4hhDRIY jdaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=9z3F1UFhsc7ahFtiaYseuyUb1vERSuRLyCpaC/GzQW8=; b=AoUrWnMAt9posJwNO6cNR8Pz4+rgFY7Hb7W1DWrfM8DfNfxzIj/adS4cNDacgBOF1x W8RVKn0xH4AnQ02Vz5syUkEJfs7PQbRFQRvtgcXAzHMaz5hBnYipswE87p7sed1Qxq6C unJ/dcIvjnQJR8e1MFOrIobszHT6zVZI1lY6KWvxUCpsTIQa5Lbn2gWg+YMHq4Ld1by4 KN2tC5SZfZsenYwVaD9fg7KAcv8GI/1wuc4fkVo/i3zKXoHLUKghVUfOL3ZOZgQfpMZM FW44jYvsJEVn/nSAuizayq9f5BH6PcVljE04Bpy4iAgHAs9aHgUYpxdyAtY0B0+/57Pr 4N4w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXyIVeddzYbUw7MEBTM3q+yrkjXahKpKGXCLJlqksIPzx9JSRzr TJZfewLxvmGuAWP2YqLL2l8= X-Google-Smtp-Source: APXvYqx/RHmlD8NEY+l9ms435HdJe5jfWTp7+zP/c0qVzRycY7KP8iilun+lcpS5I9qJmsQL4/tjAg== X-Received: by 2002:a9f:25e9:: with SMTP id 96mr10097525uaf.95.1563384702913; Wed, 17 Jul 2019 10:31:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:8d08:: with SMTP id p8ls3088095vsd.10.gmail; Wed, 17 Jul 2019 10:31:41 -0700 (PDT) X-Received: by 2002:a67:f495:: with SMTP id o21mr25292663vsn.54.1563384701915; Wed, 17 Jul 2019 10:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563384701; cv=none; d=google.com; s=arc-20160816; b=b+5ocXo+rF+Gzs/YFMTSvNVsFUwzqqyEriokqE5y9NoJm4tInDrNv7JSyLc9RTrvVa szRiLzhVb0F9Gah2Uu2iFUxINzFEN2xSZdfrPh00A2Ssby9NczHsBbhKWDe/C6UzeAvZ UYzY8yY92Do5lkzonm6FxS27u9SZiRvgwmm9tP1qPjkO4mMgupdOnVhhTa+beDeINZwE GEpT9eDvXHrX/VnhYMN1bj0TzdmX4Oi2HotE8Bt85lqANRjpeiC9tW811m8Eh1oa4oY/ XDLZ9D88U2LKqGb8sSr9A5w7/Ld/8j7lxspZIhbJciZs7QDNp3ke4LrC1OT+oWux6tVi l/fQ== 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=NaPQHKCMaT47j1PxJvPFlvBMYNzdb6JYXfrXfJZRiNY=; b=Kwy5U+SgInSAVm5BjinGFrB77pslgVWNuZfwG3n2nPD24KMzn83Y30CpUH3MNcvqgy NLiFwGXZtBnLfffdUYguyUcwcC6byGsTymm72jwgTTnshFc7LnEWhtoiH+JZCJjN9W4o bV5XI9pHd8vF3tfnGKtrl80rR+Ovp8TZ9aYezqhB6Yr9glHcMEYb/8NBB1VKVz1h9Hr/ W/cHSkuZ766vEnlKu2GZHwh1Q8OOBWni5nOin188v7dYDEkoohNkBQzH/Q6kKY+R4na+ YBfGN5LiMnesn3spRjbwapbv1OLkgJ7WdoSGJ3XOUk3ZTRT0zaBTn8J31OdP7hgCOasB SZQg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="nlOlaU/H"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com. [2607:f8b0:4864:20::534]) by gmr-mx.google.com with ESMTPS id e126si1391623vkg.5.2019.07.17.10.31.41 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 10:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) client-ip=2607:f8b0:4864:20::534; Original-Received: by mail-pg1-x534.google.com with SMTP id f5so2658730pgu.5 for ; Wed, 17 Jul 2019 10:31:41 -0700 (PDT) X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr16533672pjq.142.1563384700880; Wed, 17 Jul 2019 10:31:40 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id x128sm48355560pfd.17.2019.07.17.10.31.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 10:31:39 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 1B803A255; Wed, 17 Jul 2019 13:31:29 -0400 (EDT) In-Reply-To: <3d4a16fc-80f3-4dbb-b7bb-3362cfbcfc81-/JYPxA39Uh5TLH3MbocFFw@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.20150623.gappssmtp.com header.s=20150623 header.b="nlOlaU/H"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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.org gmane.text.pandoc:23152 Archived-At: The attributes can be specified in pandoc markdown as follows: # Heading {#identifier .class1 .class2 key="value"} or in a code block ``` {#identifier .class1 .class2 key="value"} ``` Note that ``` ruby ```` is equivalent to ``` {.ruby} ``` The classes are like HTML classes, and are rendered that way in HTML. In other formats you can use a filter to do something special with them if you like. Ignat Insarov writes: > This one: > https://hackage.haskell.org/package/pandoc-types-1.19/docs/Text-Pandoc-Definition.html#t:Attr > > It is a simple enough type by itself, but I do not understand how it should > be used, what is the intention. > > Particularly: > > * What are these mysterious "classes"? > * Why is it not a fancy Map in a tuple with a String or a Text? > * How best to label a code block? > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3d4a16fc-80f3-4dbb-b7bb-3362cfbcfc81%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout.