From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23438 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "John Gabriele" Newsgroups: gmane.text.pandoc Subject: Re: Conditional Formatting Date: Wed, 18 Sep 2019 11:32:22 -0400 Message-ID: <588b6121-81c2-4045-8f7d-94be86c04d43@www.fastmail.com> References: <34b81ee8-2405-5b3a-bbc9-23600a2802c5@linuxacademy.com> <214b77f6-5739-eba4-ff5d-ea5d1fa553b9@linuxacademy.com> <99b9af3a-c206-d664-3b58-d671eabd9116@linuxacademy.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=4f3f076941944dbeaf5d4f0800e11429 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="212099"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Cyrus-JMAP/3.1.7-238-g170a812-fmstable-20190913v1 To: "'PEDOFILO SATANISTASSASSINO DANIELE MINOTTI' via pandoc-discuss" Original-X-From: pandoc-discuss+bncBCJ3XKWUQQDBBNE4RHWAKGQELX5PBMI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 18 17:33:11 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pg1-f192.google.com ([209.85.215.192]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iAbx8-000szZ-I8 for gtp-pandoc-discuss@m.gmane.org; Wed, 18 Sep 2019 17:33:10 +0200 Original-Received: by mail-pg1-f192.google.com with SMTP id o32sf180894pgm.18 for ; Wed, 18 Sep 2019 08:33:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568820789; cv=pass; d=google.com; s=arc-20160816; b=RzbTIZSAH4BQ0/ZQ6g1WBApY6wGWcN9vGXpYwHLdF4yzeDOZxl/RtgL1IRtMzfdlbH dNvWW52cgTtJAjwyKMZuTtZKVipheeqHTSt00V6ixjmHqFSnBh9k4H/EFJcre31/Zg+Z TNzUA5GGOvHDlNC7gDR5LhjYHPty/KRRTdj96ZEfq+mGaU4vOAqu0LCA3jI1IWSF39mu NBFEtAkWNoPDTW28b9VHBrJDOeooGoE8wjpGia3PkdaXGyz7hYKeu1sDvFhmxt36Y4f6 MlIhKxWnbAKCI/oAoRUHVsnZuxKTFcsEh9SWHv74J+6xJIIdZ5hEvtRkb7ylelYWg5Vb rrMA== 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:subject:to:from:date :references:in-reply-to:message-id:mime-version:user-agent:sender :dkim-signature; bh=vfZJB4iXuRHuTX5RyjWDwpKC3TkRJsKiSCjo6SafkBo=; b=KAzfX7RlXAPblX3eqIDkto003Z82AGMJkps6oh01A5MHrLjDtGMgyQXIRSuA0WaULl eXAgPM/gc+/r7mZ3CT6UpbT7/VB02GrN4UOhiNfKfB1AUttqpU+Hd1ORx1SIeJUYFqW1 90yauP8LHK6CT9IkmEpAZnbZUm+Q1KdaGzc0u1wzjNQmC85h1quGJUvD1wO1TWJBJN/C Yj7PdkcnNT+LnzwRh0VRH8H9I2hsnOUlisrM4mxa6P84x42+cJfq0JzlRSAQTM4yFrxb Bvf+MptqFiJkomwPe/oqYJmr4raNa+SKVqS3yT14+CagMtghEKPF0hysG15cuaCoWSZ/ Cnfg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=KYY1G20K; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=C2VFP2iL; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.25 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:user-agent:mime-version:message-id:in-reply-to:references :date:from:to:subject: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=vfZJB4iXuRHuTX5RyjWDwpKC3TkRJsKiSCjo6SafkBo=; b=PF4NQfRucZVOohyVbAHlKVpq5aWW9U7rJ+QOSOiHMMNLgFo7x8f6h1xhxOzBMir5YW UMnjyZsd3xZEAcdfGUxl9JFuSVx9DsDRzs2k746/tkAfEKpB751EY/ak86YyTcn9AUU/ A9u+jcpYYUsUkaf8imuGfbIEZ8BQ+cpsHwCNPSsChNH36WCXrH5gx1ygxZQF/guj7KKC yQ3Qw85We3QQj9zdrLbhdtYz3D3+hX5vx5ZpYdJ8Gi0J19wfGp5m/C1VItX5Dx7DMJGM NyGdIAvmWpECyYOMpWh4OMv9A5OIF4dpQafGsMYOcav4rIkjgtFeG983bCeJazTCp6zJ vaYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:user-agent:mime-version:message-id :in-reply-to:references:date:from:to:subject: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=vfZJB4iXuRHuTX5RyjWDwpKC3TkRJsKiSCjo6SafkBo=; b=GgPmmnEJOYzz38GK522Hu/7VoR0yJ7v82j8NnVkycYlscYoLP+1l33eyuLbH7nqYP6 3K0ooPI1xt4VmczWpM4ayDxDq9PoYxWSjP7mg0/U0opaqRm7EY6n2ill7XKeIM3zgs1S IXjjXt85ExZBg1FZ8X/zYNCwEaiewkwuY6PwHOfyTnr05I312ztCvUGVJ1/hzbsKxJYh 4YOcHSV/BbFxd7+72c86NNwNzyQTSpFYX+tVQ71c3ZnwzhUC96L3aTEwYKoEcyPi0Cri EfW1G7zUOdAHvZkZEFlQPMm3KCi7XZfWIsswSY4ZQiSTQWBLyLUKIsgKTZyEGJveww+a YjdQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVAOnaKuUJKTUVyu8AGYeX4WTXO1J88yVJBJ6/NFzlfDY7qH6hG dObf/UQCpjPwQiHsQ7dsKp4= X-Google-Smtp-Source: APXvYqw0mNFtKbvvpBNiC3khN5WeKPYiKAH3fc3noRQCsvBW7yBN6Mbr70kAbxj7NKn+Ps4G3A8uDA== X-Received: by 2002:a63:5703:: with SMTP id l3mr4797881pgb.112.1568820788884; Wed, 18 Sep 2019 08:33:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:ab81:: with SMTP id f1ls58468plr.0.gmail; Wed, 18 Sep 2019 08:33:07 -0700 (PDT) X-Received: by 2002:a17:90a:8c17:: with SMTP id a23mr4319297pjo.111.1568820787757; Wed, 18 Sep 2019 08:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568820787; cv=none; d=google.com; s=arc-20160816; b=XQ+acNaKpfF7jXkQhUVcnaUnmumabprjjJQF5wIrzaKYVHkuEVeqsGR7F04TU8LQGS D57tiygQW6A5EL7AtqAylgjZF0olmJuuMkTxCriWT1G/nWPY3di9ElUgKZasJJGUAa5H e076XoLNvgP9fz9aFrPFiM4vGKv9kcVfFun+Eih1U4xB1W5USfGbBSo5vUXc6+yooW6Y z3ZldCZV+TDkWUcgIKebjLh/RkhGhvTpln5G4v144xyTJ9C0KkA4gDGKu/w8XMRu0DZg lG2ytb5YoeG3SsXM4JT6yzcrcuHRDT6mkk2WbqntwwXRjR4E3wWU9yaBncpoD8WfhzEU d8Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:to:from:date:references:in-reply-to:message-id:mime-version :user-agent:dkim-signature:dkim-signature; bh=0OGgCMov/qcf3xFxYygiLsbvQ0vRFsJYTEsQWsYS63Q=; b=pNZdskU84q5NR2374RLnnGEB0iSZrnVpDuwKSWryqwswYgLTutoqUtdahxWcaSwtoa j9SfziTa3q6zUGm9oEJJZBywIjYGJTAbVX9oVJsLz66+6kGpHvIt61A9EwcLw+2ErQLT xSVuIQLg6lh47KabNZTLPtNMzBkEUx1pT9t3cQog/y7MeJDwZ9f5t0AQ+tVe2wAIJmxR 10ZtbmGfXKFWWjZgXyJQySnB0Q2l2vcr+pSnwXJWc8QblSX/ZOevcvEj9oSODRzY+scp Lz9LcMakmc5A0nO9MKyUWYonBpxwzLhTaWTGHEwA11ulTr5RevhwDnXrnpgLRrEkDiHv xeJQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=KYY1G20K; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=C2VFP2iL; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.25 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm Original-Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com. [66.111.4.25]) by gmr-mx.google.com with ESMTPS id c6si241836pls.5.2019.09.18.08.33.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 08:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.25 as permitted sender) client-ip=66.111.4.25; Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 9F13821F41 for ; Wed, 18 Sep 2019 11:33:06 -0400 (EDT) Original-Received: from imap4 ([10.202.2.54]) by compute2.internal (MEProxy); Wed, 18 Sep 2019 11:33:06 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudekgdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenog fuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjughrpefofgggkfgjfhffhffvufgt segrtderreerreejnecuhfhrohhmpedflfhohhhnucfirggsrhhivghlvgdfuceojhhgrg gsrhhivghlvgesfhgrshhtmhgrihhlrdhfmheqnecuffhomhgrihhnpehgohhoghhlvgdr tghomhdplhhinhhugigrtggruggvmhihrdgtohhmpdhprghnughotgdrohhrghdpfhhosh hsfhholhhkshdrtghomhdpshhighhsthhrrdhnvghtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehjghgrsghrihgvlhgvsehfrghsthhmrghilhdrfhhmnecuvehluhhsthgvrhfuih iivgeptd X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5E7313C00A1; Wed, 18 Sep 2019 11:33:06 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <99b9af3a-c206-d664-3b58-d671eabd9116-UzRat0APdLvLPIzirxu/xA@public.gmane.org> X-Original-Sender: jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@fastmail.fm header.s=fm1 header.b=KYY1G20K; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=C2VFP2iL; spf=pass (google.com: domain of jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org designates 66.111.4.25 as permitted sender) smtp.mailfrom=jgabriele-97jfqw80gc6171pxa8y+qA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fastmail.fm 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:23438 Archived-At: --4f3f076941944dbeaf5d4f0800e11429 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It's actually a pretty recent addition to Pandoc. You can do spans too! See= . On Wed, Sep 18, 2019, at 10:46 AM, Craig Parker wrote: > I had no idea this was even possible. I was trying to make life easier fo= r folks on my end that don't know html. :::bob becoming
= will be awesome. I've got a meeting in 15 minutes -- going to sing some mo= re pandoc praise (coworkers must be getting sick of me singing by now...) >=20 > Is this something specific to pandoc, github markdown, or what?=20 > On 9/18/19 10:12 AM, BP Jonsson wrote: >> You can of course do it manually with divs in your Markdown as well: >>=20 >> ````markdown >> :::shallow >>=20 >> - a >> - b >> - c >>=20 >> ::: >>=20 >> :::deep >>=20 >> - A >> - B >>=20 >> - a >> - b >> - c >>=20 >> - C >>=20 >> ::: >> ```` >>=20 >> and then in your CSS: >>=20 >> ````css >> div.shallow > ul { /* style here */ } >>=20 >> div.deep > ul { /* style here */ } >> ```` >>=20 >> The main point is that Pandoc doesn't support attributes on most element= s, so you have to put block elements inside a div and inline elements insid= e a span, set the attributes on the div/span and use a child selector in CS= S. >>=20 >>=20 >> Den ons 18 sep. 2019 01:39John MacFarlane skrev: >>> Craig Parker writes: >>>=20 >>> > So if I define a ul.shallow and a ul.deep in my css, you're saying a= lua=20 >>> > filter would render (in the html)
    and >> > class=3D"deep"> ? >>>=20 >>> No, I'm not saying that. >>>=20 >>> 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. >>>=20 >>> Css could then have a rule like .shallow > ul or .deep > ul. >>>=20 >>> > Are creating lua filters anything like coding in other languages? I = know=20 >>> > bash and PHP... >>>=20 >>> sort of, yes. See the documentation for lua filters on the pandoc >>> website. >>>=20 >>> --=20 >>> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >>> To view this discussion on the web visit https://groups.google.com/d/m= sgid/pandoc-discuss/yh480kr24eh4s5.fsf%40johnmacfarlane.net. >> -- >> You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/CAFC_yuQ3GEoYovUB%2Btg6iSs_hL9bDGq7RCoDT93GemZXz%2BCSYw%= 40mail.gmail.com . > --=20 >=20 > Learn by Doing with Linux Academy Multicloud Training >=20 >=20 > *#1 Learn-by-Doing Multicloud Training Platform* >=20 >=20 >=20 > *Craig Parker* > Technical Writer > Schedule a Meeting or Call >=20 > 125 Bear Creek Parkway. Keller. Texas 76248 > LinuxAcademy.com > Learn faster and deeper with REAL Hands-On Labs. >=20 >=20 >=20 > =C2=A9 Linux Academy, 2019. All Rights Reserved. > Pinehead=C2=AE and the Linux Academy Logo=C2=AE are registered trademark= s of Linux Academy in the U.S. and other countries. Linux=C2=AE is a regist= ered trademark of Linus Torvalds in the U.S. and other countries. >=20 > -- > You received this message because you are subscribed to the Google Group= s "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/99b9af3a-c206-d664-3b58-d671eabd9116%40linuxacademy.com <= https://groups.google.com/d/msgid/pandoc-discuss/99b9af3a-c206-d664-3b58-d6= 71eabd9116%40linuxacademy.com?utm_medium=3Demail&utm_source=3Dfooter>. --=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/588b6121-81c2-4045-8f7d-94be86c04d43%40www.fastmail.com. --4f3f076941944dbeaf5d4f0800e11429 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
    It's actually a pretty recent addition to Pandoc. You can do spans = too! See <http= s://pandoc.org/MANUAL.html#divs-and-spans>.



    On Wed, Sep 18, 2019, at 10:46 A= M, Craig Parker wrote:

    I ha= d no idea this was even possible. I was trying to make life easier for folks on my end that don't know html.  :::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

    -   a
    -   b
    -   c
    <= /div>

    :::

    :::deep

    <= /div>
    -   A
    -  &= nbsp;B

       = -   a
        -   b
        -   c
        
    -   C

    :::
    ````

    and t= hen 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:39John MacFarlane <jgm@berkeley.e= du> skrev:

    > So if I define a ul.shallow and a ul.d= eep 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 tha= t.

    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 .shallo= w > ul or .deep > ul.

    > Are creating lua filters anything like cod= ing in other languages? I know
    &g= t; bash and PHP...

    sort of, yes. See the documentation for lu= a 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 f= rom it, send an email to pandoc-discuss+unsubscribe@googlegr= oups.com.
--
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.
--

3D"=


= #1 Learn-by-Doing Multicloud Training Platform



Craig Parker
Technical Writer Schedule a Meeting or Call
125 Bear Creek Parkway. Keller. Texas 76248
3D"Learn



= =C2=A9 Linux Academy, 2019. All Rights Reserved.
Pinehead=C2=AE and the Linux Academy Logo=C2=AE are r= egistered trademarks 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 rec= eived 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+unsu= bscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/588b6121-81c2-4045-8f7d-94be86c04d43%40www.fastmail.co= m.
--4f3f076941944dbeaf5d4f0800e11429--