From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23432 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Craig Parker Newsgroups: gmane.text.pandoc Subject: Re: Conditional Formatting Date: Tue, 17 Sep 2019 15:21:22 -0400 Message-ID: <214b77f6-5739-eba4-ff5d-ea5d1fa553b9@linuxacademy.com> References: <34b81ee8-2405-5b3a-bbc9-23600a2802c5@linuxacademy.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------DD2259CDFF7390C37435E403" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="29642"; 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: John MacFarlane , pandoc-discuss Original-X-From: pandoc-discuss+bncBDAZNM4HRACRBNHEQTWAKGQEXWZ6TMI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 17 21:21:27 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yb1-f192.google.com ([209.85.219.192]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iAJ2U-0007bG-M0 for gtp-pandoc-discuss@m.gmane.org; Tue, 17 Sep 2019 21:21:26 +0200 Original-Received: by mail-yb1-f192.google.com with SMTP id 137sf3434015ybd.8 for ; Tue, 17 Sep 2019 12:21:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568748085; cv=pass; d=google.com; s=arc-20160816; b=e6n4x9NefpOyXTDMSGSLdsxhVAI3f6FNhFflk3qLBWFsa3wS8ks4tbP2VuRJZia8Gl wTsUJDxFIEL+QR76bXHeV3aqoxZZTNE1Zx7LXU9cN8otsRa/ARS9KHOUOLdmkye6OvFE vniWJBTn3aU6o3W20crhSH7moyU0Hl4QiUmrYw34/N4pIijuKUbRS1pnFTgJYPLkJSjZ +P6vpygTmKnc92g03UcXrMIf0uFhU8A3mRjpQTw8eevfvlgODhbvmbfuYBujdKl15RZs F03NG+g6CFVMslfWKqyBnKtdc9to6p1Jq7eyxKYm+x/wgwrbMmFmjWjJlBbnQnYAKX4f xVUQ== 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=EqB1pXaRDQFB4V/sdC9QxqlaF/+FfeA4WThjlixtVDY=; b=S0nYCn6uygMb1KKxLMJJuqBlDTS+KVz6I7FdomcDIFswShvB3Ojd1xH2d25P82Lu3v ND2EdPI5NyDw+BfyHb1Uq2LnsnMKiEgot1DMuEg9chmJIYtCb1lz1GJeqwYmgpKx/G6K iDVlxLtKTUBSsgZe8tueoB09XYhIy7G8So3lXJHCwZDROjOM915cRraD6ZeyqCPvcD7u RpYjf/gJuDf8iNG/EEFnVjYJDt+ib05DBPC+joIvb1s8XeFBJcuWTQ/RTyn4L7iYU+Ri lx4l+JdpV727sQ5T67v+G6Q+SjRtl/wJqsfG3FTb3iL8EHMhegBdZ8odoDlrvu7yyt0W oKbw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b=T5EvuQ0W; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::72e 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=EqB1pXaRDQFB4V/sdC9QxqlaF/+FfeA4WThjlixtVDY=; b=oof16MyUGBB6s/FXpl2OG/kyP9rQ+G3bFD6r8rFTGWYtSl7itZrm09Fqr/9KKKRhIG 3W9NQvgYPgAG8o68Um9626uYXUtrn45kodes9+lIeWycWAT1CIWNdCVTwVTnPsv2seZk chX5Ruk2NE5DIAETYzUluCCukBrLBIqTDWgsSyxs2asz7gbkAQKJTgh5vr1yVaf1ms33 svYLVdoMDMwHtfbkAgTMmob6RfvFVUs/Vi3y0RfVO7ZaIihrlJmxwkg5K5718MtxRQ1I pMG+rUuuaeWMpRNVctBN9keLGZuy2knoDdUSRUpe0ZlgyQ3CYs55YYmPs5G1IEtyevWZ 9oSw== 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=EqB1pXaRDQFB4V/sdC9QxqlaF/+FfeA4WThjlixtVDY=; b=PDoP/vfDb9e/f6I9yXK1kIDZT8W6ams03CYJw58UR0RJ4R+gOtkLHg5b8C9HmhTkdv RaVxWq44bFxKKpIQpxTZ9aFCsTQGmLSPx6xMCqPzlqHqi3gyjRd4QpsMD1BFPeRjAD18 0lctnn+EAH7W2cXNIG3rCK+rEnZTUnjdY4lfjiIFrq5G2luH00+sySUx5RvTKPWC/0yW Bu0/A4IiVjdaO6H8IA5oBhuCJwzaI40P68xlCQ8BpGYIue+R0cp2uRKlxe0eHD6MTZzZ uaU9qWdnhQEcFosUEVut3URIXdRcB4BQ3M9PLSvaiN1QDLdrCWSgjQNfVqUeUlQ3Alfy Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAU7EZcp7d7uPlhqqlwvjVRDWPkfJ8pZH6Apo9S1RFtxGcvEgAaZ XekKnnPR/f8OGJqTgDYDAWo= X-Google-Smtp-Source: APXvYqwlRD1jNYUH/AbzDK3D851grHJEegRYqt7j6a1h5dgDbLGnC+RW8dh8BCxLcV7BkuqxVOceiQ== X-Received: by 2002:a25:2a0b:: with SMTP id q11mr100075ybq.429.1568748085372; Tue, 17 Sep 2019 12:21:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:4e43:: with SMTP id c64ls360431ybb.4.gmail; Tue, 17 Sep 2019 12:21:24 -0700 (PDT) X-Received: by 2002:a25:ab42:: with SMTP id u60mr137286ybi.190.1568748084396; Tue, 17 Sep 2019 12:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568748084; cv=none; d=google.com; s=arc-20160816; b=H29V6RtXzX2mb0WPX9EhH+4nZgArPyRnBUdR915PyX6z98H9StoZpOzbXLgPnAagOn FGyTetPyk5+BQiVe0wBK2pZhZnMy/dbBdH78953paY8GuFDIV/14dhyG4ScxK4UND/BB tO5hHGufaAu+BAvW+s2RlvgFPuH7ERUxjKoI5jiGsLDYTeo15sxdt+MAM2ZzPu+eS8Rm Dv0c9zAdfxf2qy+AgzAJd5pVweD5Oib6IT6KsmeJr/drRnIS5BBG9t/21xWA7JLjCJEt sWNGRfLy50+71LWVHnYHflj62FRGZ8Ji2mOdqHj5kAohCTfoir2WYBA2VlGpw3jWacIu qHgQ== 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=zYKbmOi5vo9rU6rr4uxEXVozLsyL0cvYwGYuixLIL/4=; b=btouQuLc6q1fr3wr6UlcLpp7sa+CnHcEuXmrqDqF8IBUmygcTsV+lqoxhOWEx9PrE2 tVxVhPMtoErkInJ8yLYNLIJNYbdbhZVqleClIS/wp0h1rWzmTJfJD3k98+2kH+FyzfNs NKJOhXca6YNZvwQAC2GguSEgfGDz+fW4MT0RJzxTC0wl7RE098h7yXZtObj+a5yukqNS HSpunqHsrAu7YGemg9G4aYpQ5uNI/eBYuo3MnIsh85Iro+o6ivXpbghu6d5JZ9vcpnuz FSDlQIGH8NezJeYj/kX4WO2stjbl4njko3SHHSK1tue5oxZQBUIl8XCL6hn1Dq2vtTES gBVw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@linuxacademy.com header.s=google header.b=T5EvuQ0W; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::72e as permitted sender) smtp.mailfrom=craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org Original-Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com. [2607:f8b0:4864:20::72e]) by gmr-mx.google.com with ESMTPS id a1si554394ywh.3.2019.09.17.12.21.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Sep 2019 12:21:24 -0700 (PDT) Received-SPF: pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::72e as permitted sender) client-ip=2607:f8b0:4864:20::72e; Original-Received: by mail-qk1-x72e.google.com with SMTP id y144so5265556qkb.7 for ; Tue, 17 Sep 2019 12:21:24 -0700 (PDT) X-Received: by 2002:a37:981:: with SMTP id 123mr65872qkj.190.1568748083956; Tue, 17 Sep 2019 12:21:23 -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 c16sm1730883qkg.131.2019.09.17.12.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Sep 2019 12:21:23 -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=T5EvuQ0W; spf=pass (google.com: domain of craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org designates 2607:f8b0:4864:20::72e 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:23432 Archived-At: This is a multi-part message in MIME format. --------------DD2259CDFF7390C37435E403 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable 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 ? Are creating lua filters anything like coding in other languages? I know=20 bash and PHP... On 9/17/19 3:11 PM, John MacFarlane wrote: > If you're targeting HTML, then you'd style using CSS. > But I don't know if you can draw this distinction just > using CSS. > > If not, you could use a lua filter that puts lists meeting > some condition in a special div with a class. That would give > you the CSS hook you need. > > Craig Parker writes: > >> Is there a way to have pandoc help with conditional formatting? I'm >> going from markdown to html. If a list only contains top level items, >> for example: >> >>
    • Blah
    • Blah
    • Blah
    • Blah
    • >> >> Then I'd want that list to have a different styling than one that has >> nested lists. I didn't know if there were some way to write a function >> or something. The styling and everything else I'd have covered. >> >> --=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/34b81ee8-2405-5b3a-bbc9-23600a2802c5%40linuxacademy.com. --=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/214b77f6-5739-eba4-ff5d-ea5d1fa553b9%40linuxacademy.com. --------------DD2259CDFF7390C37435E403 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

      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"> ?


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


      On 9/17/19 3:11 PM, John MacFarlane wrote:
      If you're targeting HTML, then you'd style using CSS.
      But I don't know if you can draw this distinction just
      using CSS.
      
      If not, you could use a lua filter that puts lists meeting
      some condition in a special div with a class. That would give
      you the CSS hook you need.
      
      Craig Parker <craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org> writes:
      
      
      Is there a way to have pando=
      c help with conditional formatting? I'm=20
      going from markdown to html. If a list only contains top level items,=20
      for example:
      
      <ul> <li> Blah </li> <li> Blah </li> <li&g=
      t; Blah </li> <li> Blah </li> </ul>
      
      Then I'd want that list to have a different styling than one that has=20
      nested lists. I didn't know if there were some way to write a function=20
      or something. The styling and everything else I'd have covered.
      
      --=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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<=
      /a>.
      To view this discussion on the web visit https://groups.google.com/d/msgid/p=
      andoc-discuss/34b81ee8-2405-5b3a-bbc9-23600a2802c5%40linuxacademy.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/214b77f6-5739-eba4-ff5d-ea5d1fa553b9%40linuxacademy.co= m.
      --------------DD2259CDFF7390C37435E403--