From: Craig Parker <craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Conditional Formatting
Date: Wed, 18 Sep 2019 10:46:46 -0400 [thread overview]
Message-ID: <99b9af3a-c206-d664-3b58-d671eabd9116@linuxacademy.com> (raw)
In-Reply-To: <CAFC_yuQ3GEoYovUB+tg6iSs_hL9bDGq7RCoDT93GemZXz+CSYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 4371 bytes --]
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. :::bob becoming <div
class="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
>
> :::
>
> :::deep
>
> - A
> - B
>
> - a
> - b
> - c
> - C
>
> :::
> ````
>
> 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:39John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org
> <mailto:jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>> skrev:
>
> Craig Parker <craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org
> <mailto:craigp-UzRat0APdLvLPIzirxu/xA@public.gmane.org>> 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="shallow"> and <ul
> > class="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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> <mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> <mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuQ3GEoYovUB%2Btg6iSs_hL9bDGq7RCoDT93GemZXz%2BCSYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuQ3GEoYovUB%2Btg6iSs_hL9bDGq7RCoDT93GemZXz%2BCSYw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
Learn by Doing with Linux Academy Multicloud Training
<https://linuxacademy.com>
*#1 Learn-by-Doing Multicloud Training Platform*
*Craig Parker*
Technical Writer
Schedule a Meeting or Call <http://www.fossfolks.com>
125 Bear Creek Parkway. Keller. Texas 76248
LinuxAcademy.com <https://linuxacademy.com>
Learn faster and deeper with REAL Hands-On Labs.
<https://linuxacademy.sigstr.net/uc/5d5b0bc61a99af20f77b0db4>
© 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-/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.
[-- Attachment #2: Type: text/html, Size: 10492 bytes --]
next prev parent reply other threads:[~2019-09-18 14:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-17 18:51 Craig Parker
[not found] ` <34b81ee8-2405-5b3a-bbc9-23600a2802c5-UzRat0APdLvLPIzirxu/xA@public.gmane.org>
2019-09-17 19:11 ` John MacFarlane
[not found] ` <yh480ktv9ahh68.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-09-17 19:21 ` Craig Parker
[not found] ` <214b77f6-5739-eba4-ff5d-ea5d1fa553b9-UzRat0APdLvLPIzirxu/xA@public.gmane.org>
2019-09-17 23:38 ` John MacFarlane
[not found] ` <yh480kr24eh4s5.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2019-09-18 14:12 ` BP Jonsson
[not found] ` <CAFC_yuQ3GEoYovUB+tg6iSs_hL9bDGq7RCoDT93GemZXz+CSYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-09-18 14:46 ` Craig Parker [this message]
[not found] ` <99b9af3a-c206-d664-3b58-d671eabd9116-UzRat0APdLvLPIzirxu/xA@public.gmane.org>
2019-09-18 15:32 ` John Gabriele
2019-09-19 5:15 ` brainchild
[not found] ` <c18b9c78-2262-4f63-b995-0698dc795132-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-09-19 11:14 ` Craig Parker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99b9af3a-c206-d664-3b58-d671eabd9116@linuxacademy.com \
--to=craigp-uzrat0apdlvlpizirxu/xa@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).