Great! I'll take a look. Thanks! El miércoles, 26 de junio de 2019, 10:31:16 (UTC+2), Hans Kunkell escribió: > > Hi pbeltran, > > ok, I understand. My script is not limited to 2 versions but any number. > internal and external was just the choice I use. > > I guess a lua filter is better for your workflow, I just wanted to share > another possible method, it may help some other. > > Have a nice day! > > Hans > > Den onsdag 26 juni 2019 kl. 17:25:02 UTC+9 skrev pbeltran: >> >> 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-/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/695a09ca-b37a-4cee-a9bc-a321c0477d95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.