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...
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.
![]()
|
|
|
|
Craig
Parker Technical Writer Schedule a Meeting or Call 125 Bear Creek Parkway. Keller. Texas 76248 LinuxAcademy.com |