Thanks, I'm working with the solution via lua filters, as I need not two, but several versions.

El miércoles, 26 de junio de 2019, 2:56:59 (UTC+2), Hans Kunkell escribió:
Hi!

Perhaps you are satisfied with the way discussed earlier. I have an alternative solution for those who are interested.

I also had the need to make two versions of a document where most of the contents are the same. My solution was to have single file and where needed write like this:
<<< internal
Contents here will be in *internal* version. You may include any valid markdown here.
<<< external
... For external version ...
>>>

The attached bash script will parse the file and depending on targeting internal or external version (or whatever identifiers you prefer) two different intermediate files will be created and then processed by pandoc.

This is the way I solved it and if you find it useful for your needs, please use it!

Regards
Hans

--
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/9ab5d37d-74c0-4793-81fe-c6cdab9e253d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.