public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Generalized syntax for filtered elements in Markdown?
@ 2017-07-21 12:00 Geoffrey Poore
  0 siblings, 0 replies; only message in thread
From: Geoffrey Poore @ 2017-07-21 12:00 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]

It might be nice to have a syntax for elements that will be processed by 
filters, especially code blocks and inline code. This would provide an 
obvious indication that the document is intended for use with a filter, 
rather than just using custom classes.

I'm working on a filter to make some code blocks executable. Currently, I 
can use something like this:

```{.python evaluate=true}
<code>
```

By analogy with #3537 <https://github.com/jgm/pandoc/issues/3537>, a filter 
syntax might allow something like this:

```{!python}
<code>
```

Perhaps filter elements could be given a default filter class in the event 
that the output format is not native or JSON (that is, if the filtering 
step is skipped). In that case, it might be good to discard all key-value 
style attributes or otherwise handle them specially, since they are 
probably meant for the filter rather than for an output format directly.


-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/46a01068-3a82-49fa-b794-04b56ee7e8ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1969 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-21 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-21 12:00 Generalized syntax for filtered elements in Markdown? Geoffrey Poore

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).