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="shallow"> and <ul class="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 pandoc help with conditional formatting? I'm 
going from markdown to html. If a list only contains top level items, 
for example:

<ul> <li> Blah </li> <li> Blah </li> <li> Blah </li> <li> Blah </li> </ul>

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.

-- 
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/34b81ee8-2405-5b3a-bbc9-23600a2802c5%40linuxacademy.com.
--
Learn by Doing with Linux Academy Multicloud
                  Training

#1 Learn-by-Doing Multicloud Training Platform



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.



© Linux Academy, 2019. All Rights Reserved.
Pinehead® and the Linux Academy Logo® are registered trademarks of Linux Academy in the U.S. and other countries. Linux® 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 "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/214b77f6-5739-eba4-ff5d-ea5d1fa553b9%40linuxacademy.com.