From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23437 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Craig Parker Newsgroups: gmane.text.pandoc Subject: Re: Conditional Formatting Date: Wed, 18 Sep 2019 10:46:46 -0400 Message-ID: <99b9af3a-c206-d664-3b58-d671eabd9116@linuxacademy.com> References: <34b81ee8-2405-5b3a-bbc9-23600a2802c5@linuxacademy.com> <214b77f6-5739-eba4-ff5d-ea5d1fa553b9@linuxacademy.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------8D85F609DB2B10D4CE3C2CD5" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6806"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDAZNM4HRACRBWMGRHWAKGQET3BEKDQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 18 16:46:51 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk1-f192.google.com ([209.85.222.192]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iAbEJ-0001bs-1N for gtp-pandoc-discuss@m.gmane.org; Wed, 18 Sep 2019 16:46:51 +0200 Original-Received: by mail-qk1-f192.google.com with SMTP id v143sf168031qka.21 for ; Wed, 18 Sep 2019 07:46:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568818010; cv=pass; d=google.com; s=arc-20160816; b=FKHcCx1i4LoKLuxD1/4wxZS8PNrePWSShf/+nJ9ehXooxbkVs9r/jzKE6JySG6s+Bq YMqDtQ/7bewKCBmzvcrwqlAnQKmFF9V+9lbky3WpLmD5LC3UG4Ing0SceqMvUfN3NMi6 a8kycrEdXkHCkR2Vg26Cw+/agLdOWowBODTZft50ZiNtcaYgOO4kP+U7QPURb4I1bGJi 1B+ZIAmITUUvNfmIbj3QfcmS0UxCaGQydA/jc52cYvYGtaQKccyeA74T2UqCBvsawaIy GCXnwKiE1RZLuR+s3+xtrYBZctNzmYMg0PQvTTXKJgY7Laoq9H/83FB4DLOqd9QiA6pE KGiA== 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:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:sender:dkim-signature; bh=nGAVvq0aLvGIItOaQ8J0XpjedODYgmy/zBo8MKLOEv8=; b=udurKMCUa3nHsspDt7xATfaqW19f6iaTkC+3ZRMJu0/T0DNBjcJ66wkKW2Kz4XrVWC 9pOjDgGtCgDlFve+OMMcZzgYos6f1SLdzcUHlwClmR/jPnq4+vUtjpF+zji26qzuRtKj jZSh/QC5m6Pu3+JJ8xhNVNnC3mF/3/wluXQMv7PVPGYsc7TnWpO/lPhAbWwsZJkcQMSa PrIqD7e5DuMJI79cXwGpT4/eT0oXK6L0G2N6zQnUxwfZRc2nrh9y6ZJhCNvnMk32E0Ow yRDpHpbNE9cLLrdoH/JIR1b83YM0CrCW44iIFGGAWdppO78++q6lNvh1k/6Tm2UWkLVE E7hw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b="hF/lOIel"; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language: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=nGAVvq0aLvGIItOaQ8J0XpjedODYgmy/zBo8MKLOEv8=; b=iGYCSTbA4OPsBKbRTGfKcadJmybTUiwtKll44miHfGSPR6Ukrx760PXqlylwTgfSu/ 8Zp5HrjvHTp95Z8MrytsYqqwNA4lY+MoE/olZtlHgMT+tkmB8Wj2URoqUdCoCoITmkHv brtlplP4SpAwPc1IpZsqX+uBYiCHsB+iDf+3MNKpc83MRHZ/IS1WZ7dC6lSLBrlXxr/g PCPXzvNsyttGVWplnWZOGkBVBs8ZfpGwaf4TgP8Qx6bKQdxDJ3E+o/h2NB67DOyvOyrW 961Zle+TPNVd5JE6pYc7Mp8ribStyFYhs8UsBGGFcHQz2enGI7K9YQdkoe0CoocqdHOv T9bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :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=nGAVvq0aLvGIItOaQ8J0XpjedODYgmy/zBo8MKLOEv8=; b=D6PC2s1L2jB+yn+o8Y3uVT/7uAP10ol3pH42Shjwcdwbt3zZiCMNmydbVOZNRF3N9u qVvhOuwi9ZBi0QgojGWQ//6pmEOqMLAV75cMkxTwXDwCptwMx7R8sBo0aaWcE5Ulhs+p tJUN7CZjLYjz0wnNYPJExGNfGo8EM19xYOJOuT1AGHNeokAFWPTSOjGCyPZFPGRXAmJT vEnwhWeGd0f8PkVOQEmNfMkM52+gOWaiT9pKkqbraGk1Bm62EUPMPFvlJRgFsMUKyKP7 85S8ozagnIOeM6FnfNbCIIP1kdfQuVcUt+dNnW5nuVSWWOVBs0ELk+wzsAxAkwXYJMbp Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUKCOLZQk/aJu7oQM2zCm7oSZ5klY84n0STKdLQCMi4+no+UPtn 8GAzYtF1/MiqPjTgh4FeWrU= X-Google-Smtp-Source: APXvYqxOc0rW+WFqVDRmoQscfM5DBgyLMcBCQ2ae0ScOGcioNBhVvf0xb7u6oWkuk+xVHT8V/gIvYQ== X-Received: by 2002:aed:3be3:: with SMTP id s32mr4424640qte.156.1568818009790; Wed, 18 Sep 2019 07:46:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a37:b387:: with SMTP id c129ls2976771qkf.10.gmail; Wed, 18 Sep 2019 07:46:48 -0700 (PDT) X-Received: by 2002:a37:a709:: with SMTP id q9mr4208593qke.135.1568818008949; Wed, 18 Sep 2019 07:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568818008; cv=none; d=google.com; s=arc-20160816; b=oQUkW9Hs5Wq0zr2+T81eOXXQ4g2DiYwSkxcCR0LvT/O2e4JMERX25h6HeOATjnFFoC Xo/PXAC7PO/SNGJd2uH3awklZwnkOSLmVJCI+Uqf91I2dlMz1iyWZZN9n7+mGUbumYcq 0lkuBbXMLNfo3AGS4TO73VraJCmmVpSu4N53yUVdY/Kc45TJaIkHgJbbkYzkP4H+7hJr OIbzSnQVOp6vQq0kOW+tWMVJKfFs71CXFBK8V6OmifeRXdPUbLWz9Bykdu1gJNiJYkPq 8Q6bo8dsvElmsGs6+IpGHvrz+Z8nIVDc5zkTea9iID8297R9A3RiWXNcIsyNSgnr53+t uRfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=ohBNopX338N2flXmaKcb5wvgUQS9ZFMIqWUBC3DPsXE=; b=ALOLR4Jk8/AcQ1aFlHXCpQeT4pSF80gATAXDhJoLOOSo54p6mNcbuggLwapGT+VAHl 6Vu4XbZqDF9y9L6xyuWbr5drfXRRcEcGwrGYWCX5spLs895Q8aSnIbY5FyeLnM1k0/iG 6GbbItQKY5iQoPra7snVBW1bDIa0U4Iirjuf7tA4bm6OzAInQS6aKifLidNDQyKl6dj7 ilTADkXSzMWNSyhQhGBzBBscqqTufXybuCSnD8gnjWfyI9zjopXAgR76nqwJP5Pb2Gum M5jR8Yq/FgbM5B7UawCxaaYHTe9RyGP1cd/1Zd8tI37fU99DdMPmAxaEmlLH3YX+Uv+d f8Zw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b="hF/lOIel"; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org Original-Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com. [2607:f8b0:4864:20::82a]) by gmr-mx.google.com with ESMTPS id j18si812159qkg.7.2019.09.18.07.46.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Sep 2019 07:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::82a as permitted sender) client-ip=2607:f8b0:4864:20::82a; Original-Received: by mail-qt1-x82a.google.com with SMTP id d2so58130qtr.4 for ; Wed, 18 Sep 2019 07:46:48 -0700 (PDT) X-Received: by 2002:ac8:110d:: with SMTP id c13mr4428757qtj.209.1568818008402; Wed, 18 Sep 2019 07:46:48 -0700 (PDT) Original-Received: from [192.168.199.5] (d-216-10-167-191.nh.cpe.atlanticbb.net. [216.10.167.191]) by smtp.gmail.com with ESMTPSA id w34sm3860471qth.84.2019.09.18.07.46.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 07:46:47 -0700 (PDT) In-Reply-To: Content-Language: en-US X-Original-Sender: craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b="hF/lOIel"; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@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:23437 Archived-At: This is a multi-part message in MIME format. --------------8D85F609DB2B10D4CE3C2CD5 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable I had no idea this was even possible. I was trying to make life easier=20 for folks on my end that don't know html.=C2=A0 :::bob becoming will be awesome. I've got a meeting in 15 minutes -- going= =20 to sing some more pandoc praise (coworkers must be getting sick of me=20 singing by now...) Is this something specific to pandoc, github markdown, or what? On 9/18/19 10:12 AM, BP Jonsson wrote: > You can of course do it manually with divs in your Markdown as well: > > ````markdown > :::shallow > > -=C2=A0 =C2=A0a > -=C2=A0 =C2=A0b > -=C2=A0 =C2=A0c > > ::: > > :::deep > > -=C2=A0 =C2=A0A > -=C2=A0 =C2=A0B > > =C2=A0 =C2=A0 -=C2=A0 =C2=A0a > =C2=A0 =C2=A0 -=C2=A0 =C2=A0b > =C2=A0 =C2=A0 -=C2=A0 =C2=A0c > -=C2=A0 =C2=A0C > > ::: > ```` > > and then in your CSS: > > ````css > div.shallow > ul { /* style here */ } > > div.deep > ul { /* style here */ } > ```` > > The main point is that Pandoc doesn't support attributes on most=20 > elements, so you have to put block elements inside a div and inline=20 > elements inside a span, set the attributes on the div/span and use a=20 > child selector in CSS. > > > Den ons 18 sep. 2019 01:39John MacFarlane > skrev: > > Craig Parker > writes: > > > So if I define a ul.shallow and a ul.deep in my css, you're > saying a lua > > filter would render (in the html)
    and
      > class=3D"deep"> ? > > No, I'm not saying that. > > You could write a lua filter that would identify "shallow" and > "deep" lists, and insert a div with class "shallow" or "deep" > around the list. > > Css could then have a rule like .shallow > ul or .deep > ul. > > > Are creating lua filters anything like coding in other > languages? I know > > bash and PHP... > > sort of, yes. See the documentation for lua filters on the pandoc > website. > > --=20 > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/yh480kr24eh4s5.fsf%4= 0johnmacfarlane.net. > > --=20 > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send=20 > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 > . > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuQ3GEoYovUB%2Btg6i= Ss_hL9bDGq7RCoDT93GemZXz%2BCSYw%40mail.gmail.com=20 > . --=20 Learn by Doing with Linux Academy Multicloud Training=20 *#1 Learn-by-Doing Multicloud Training Platform* =09 =09 =09 *Craig Parker* Technical Writer Schedule a Meeting or Call 125 Bear Creek Parkway. Keller. Texas 76248 LinuxAcademy.com Learn faster and deeper with REAL Hands-On Labs.=20 =C2=A9 Linux Academy, 2019. All Rights Reserved. Pinehead=C2=AE and the Linux Academy Logo=C2=AE are registered trademarks o= f Linux=20 Academy in the U.S. and other countries. Linux=C2=AE is a registered=20 trademark of Linus Torvalds in the U.S. and other countries. --=20 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 e= mail 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/99b9af3a-c206-d664-3b58-d671eabd9116%40linuxacademy.com. --------------8D85F609DB2B10D4CE3C2CD5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

      I had no idea this was even possible. I was trying to make life easier for folks on my end that don't know html.=C2=A0 :::bob becomin= g <div class=3D"bob"> will be awesome. I've got a meeting in 15 minutes -- going to sing some more pandoc praise (coworkers must be getting sick of me singing by now...)


      Is this something specific to pandoc, github markdown, or what?

      On 9/18/19 10:12 AM, BP Jonsson wrote:
      You can of course do it manually with divs in your Markdown as well:

      ````markdown
      :::shallow

      -=C2=A0 =C2=A0a
      -=C2=A0 =C2=A0b
      -=C2=A0 =C2=A0c

      :::

      :::deep

      -=C2=A0 =C2=A0A
      -=C2=A0 =C2=A0B

      =C2=A0 =C2=A0 -=C2=A0 =C2=A0a
      =C2=A0 =C2=A0 -=C2=A0 =C2=A0b
      =C2=A0 =C2=A0 -=C2=A0 =C2=A0c
      =C2=A0 =C2=A0=C2=A0
      -=C2=A0 =C2=A0C

      :::
      ````

      and then in your CSS:

      ````css
      div.shallow > ul { /* style here */ }

      div.deep > ul { /* style here */ }
      ````

      The main point is that Pandoc doesn't support attributes on most elements, so you have to put block elements inside a div and inline elements inside a span, set the attributes on the div/span and use a child selector in CSS.


      Den ons 18 sep. 2019 01:39Joh= n MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:
      Craig Parker <craigp@linuxacademy= .com> writes:

      > So if I define a ul.shallow and a ul.deep in my css, you're saying a lua
      > filter would render (in the html) <ul class=3D"shallow"> and <ul
      > class=3D"deep"> ?

      No, I'm not saying that.

      You could write a lua filter that would identify "shallow" and "deep" lists, and insert a div with class "shallow" or "deep"
      around the list.

      Css could then have a rule like .shallow > ul or .deep > ul.

      > Are creating lua filters anything like coding in other languages? I know
      > bash and PHP...

      sort of, yes. See the documentation for lua filters on the pandoc
      website.

      --
      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 p= andoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
      To view this discussion on the web visit https://groups.google.com/d/msgid/pand= oc-discuss/yh480kr24eh4s5.fsf%40johnmacfarlane.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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
      To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/CAFC_yuQ3GEoYovUB%2Btg6iSs_hL9bDGq7RCoDT93GemZXz%2BCSYw%40mail.gmail= .com.
      --
      3D"Learn

      #1 Learn-by-Doing Multicloud Training Platform



      Craig Parker
      Technical Writer
      Schedule a Meeting or Call<= /a>


      125 Bear Creek Parkway. Keller. Texas 76248

      LinuxAcademy.com
      3D"Learn



      =C2=A9 Linux Academy, 2019. All Right= s Reserved.
      Pinehead=C2=AE and the Linux Academy Logo=C2=AE are registered trad= emarks of Linux Academy in the U.S. and other countries. Linux=C2=AE is a registered trademark of Linus Torvalds in the U.S. and other countries.

      --
      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://groups.google.com/d/= msgid/pandoc-discuss/99b9af3a-c206-d664-3b58-d671eabd9116%40linuxacademy.co= m.
      --------------8D85F609DB2B10D4CE3C2CD5--