Another approach : Keep the tutorial and the questions in the same file and use divs to mark-up the questions.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
::: tutorial
Arduino
======
An arduino is a microcontroller for developers.
:::
::: quiz
Arduino is a:
- Microcontroller
- Mini-PC
:::
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Then, use a filter to render one, the other or both.
Denis
Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Im Auftrag von Corentin Dupont
Gesendet: Mittwoch, 24. November 2021 11:59
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Betreff: Interweaving two markdown files
Hello,
I have two markdown files. The first contains a tutorial written in markdown.
The second contains some questions/quizzes.
Example of tutorial file:
Arduino
======
An arduino is a microcontroller for developers.
Raspberry PI
==========
...
Example of quizz question file:
Arduino is a:
- Microcontroller
- Mini-PC
Raspberry is :
- ...
I'd rather keep the two separated, because sometimes I have to render the tutorial, and the questions separately (say, for exams).
But I also need to render them interwoven, e.g. with the questions at the end of each section.
How do you advice to do that?
Thanks
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEyhvmp-ZYFczz7BgERWp3BskyXn3ttXGZ%2BO3SC53jVhLF7iqA%40mail.gmail.com.