When I need a marker like this I use a code span, like`--pause```````lua-- Look for a paragraphfunction Para (para)-- With only one childif 1 == #para.content thenlocal child = para.content[1]-- Which is a code spanif 'Code' == child.type then-- Ignore it if it has a class .code, i.e. `--pause` is a marker, but-- `--pause`{.code} is "actual" code.if child.classes:includes('code') thenreturn nilend-- If it is the marker return some block contentif '--pauae' == child.text thenreturn whatever()endendendreturn nilend``````Den ons 25 aug. 2021 10:24Axel Rauschmayer <rauschma-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:For two filters of mine, I’d like to use a singleton block construct that triggers them via a class. I was considering using a horizontal rule:---{.pause}Alas, that doesn’t work. What is a good alternative? If there isn’t any, I can use the following syntax, but I’d prefer something that fits into a single line.::: pause:::--
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@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/066d8f5e-ede0-4705-9f38-4add41cb7ff1n%40googlegroups.com.