What I propose is not to alter the current AST JSON document but to add a second JSON document after it containing the filter options, each terminated by its own newline.

As for specifying the filter which the option(s) belong to explicitly I think that is pretty much necessary to avoid confusion. Alternatively the `-F` option might be altered to take an optional 'value' which would be the options to the filter specified as 'key': `-F FILTERNAME[=FILTEROPTIONS]`.
Another question is whether the filter options should be parsed by pandoc or that should be left to the filter. At least perl and python already have libraries which can parse options from a string. Other filters may wish to receive their options e.g. as a JSON object string, since any filter has to be able to decode JSON.

Den 8 jan 2017 10:10 skrev "John MacFarlane" <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:
+++ BP Jonsson [Jan 07 17 23:53 ]:

  That said if a separate filter option option is implemented it would
  probably be wiser to implement it analogously to the -M option,
  something like `--filter-option myfilter:option[=value]` and pass those

I like the idea of specifying the filter name explicitly.


  options to the filter as a second 'line' of JSON, thereby not breaking
  backwards compatibility.

Changing the JSON will affect backwards compatibility.
Better just to add these as arguments to the filter (after
the initial 'format' argument).

But I'm still not *entirely* convinced that this is needed.


--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20170108090942.GA41105%40Johns-MBP.home.

For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBvu9uTL3SgXPdUEeMJDziRi-eWNf6MuZjS6MacRgwA7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.