public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Corentin Dupont <corentin.dupont-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Interweaving two markdown files
Date: Wed, 24 Nov 2021 13:03:40 +0100	[thread overview]
Message-ID: <CAEyhvmpq4_8MXUtUX4hE6cQqEjdjjRbuP4-GBtyTQe70Xu3jdQ@mail.gmail.com> (raw)
In-Reply-To: <YZ4d1bz3N8ybLJlQ@localhost>

[-- Attachment #1: Type: text/plain, Size: 3460 bytes --]

Thanks for the responses. I didn't know that you could express divs in
markdown.

But is there any way to really keep the files separated? Maybe the simplest
way is to append the quizzes after the tutorials.

Another idea is to render the two files in two separate divs side by side,
and keep the divs in sync.

I'm using Hugo to generate the webpages, so using hugo templating system is
possible.


On Wed, Nov 24, 2021 at 12:12 PM Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
wrote:

> You can write both in a single file while using divs to discriminate
> beween them:
>
> ::: {.lesson}
> Arduino
> ======
>
> An arduino is a microcontroller for developers.
>
> Raspberry PI
> ==========
> ...
> :::
>
> ::: {.quizz}
> Arduino is a:
> - Microcontroller
> - Mini-PC
>
> Raspberry is :
> - ...
> :::
>
> Then you can write a filter that suppresses Divs with class "lesson" and
> another one that suppresses those with class "quizz".
>
> Le Wednesday 24 November 2021 à 11:58:48AM, Corentin Dupont a écrit :
> > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit [2]
> https://groups.google.com/d/msgid/
> > pandoc-discuss/
> > CAEyhvmp-ZYFczz7BgERWp3BskyXn3ttXGZ%2BO3SC53jVhLF7iqA%40mail.gmail.com.
> >
> > References:
> >
> > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > [2]
> https://groups.google.com/d/msgid/pandoc-discuss/CAEyhvmp-ZYFczz7BgERWp3BskyXn3ttXGZ%2BO3SC53jVhLF7iqA%40mail.gmail.com?utm_medium=email&utm_source=footer
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/YZ4d1bz3N8ybLJlQ%40localhost
> .
>

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAEyhvmpq4_8MXUtUX4hE6cQqEjdjjRbuP4-GBtyTQe70Xu3jdQ%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 5258 bytes --]

  reply	other threads:[~2021-11-24 12:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 10:58 Corentin Dupont
     [not found] ` <CAEyhvmp-ZYFczz7BgERWp3BskyXn3ttXGZ+O3SC53jVhLF7iqA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-24 11:07   ` AW: " denis.maier-NSENcxR/0n0
2021-11-24 11:11   ` Bastien DUMONT
2021-11-24 12:03     ` Corentin Dupont [this message]
     [not found]       ` <CAEyhvmpq4_8MXUtUX4hE6cQqEjdjjRbuP4-GBtyTQe70Xu3jdQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-24 13:24         ` Bastien DUMONT
2021-11-24 13:25         ` AW: " denis.maier-NSENcxR/0n0
2021-11-25 17:09   ` Daniel Staal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEyhvmpq4_8MXUtUX4hE6cQqEjdjjRbuP4-GBtyTQe70Xu3jdQ@mail.gmail.com \
    --to=corentin.dupont-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).