From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29599 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Interweaving two markdown files Date: Wed, 24 Nov 2021 13:24:17 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10946"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBVP27CGAMGQEULWQQNY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 24 14:25:45 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f60.google.com ([209.85.128.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mpsHQ-0002f8-U6 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 24 Nov 2021 14:25:44 +0100 Original-Received: by mail-wm1-f60.google.com with SMTP id c8-20020a7bc848000000b0033bf856f0easf3023462wml.1 for ; Wed, 24 Nov 2021 05:25:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637760344; cv=pass; d=google.com; s=arc-20160816; b=cHNhbm+LALMGDPWv9z7OEInOoB7hXA0Ry3f3XKAU/oDe3cXslbl+cgp4F0H3qcXzSS nBLbX7vDD9ErsGbldJjj0umdk0RYqRjD5ZFJYTpVoCV8YCiWiN6/QrTLwVVijpSeEtYn cCCWyQmP49mEj4aL5jEH81ftFjppvMwoyiJoDoURQIxYXZ5TbNe7GyoKLuUGuRgHXZBR GwfNBdU/0jYB6+y/Okqdi+wZbNZIusF083WCcPkrLq+5w0TleUtRpPYUNmiBiA10KBdt IizLHqMsIxdEdmQdMp0uW0hy91pDlI0+vMBMa3WbT8kFANM4OECNb0B9ZCrOiA361BBr ky1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=AgokpDMTJ0/0TExcHY9dJs2E/jkvOdtlf+OZY4E/AWc=; b=aREtjoGwYd/LEjEns4rK1R4GLHIycPitzLgSRXFYC7yL9yBlrJMRKU5ufCg+VaKCtB XJaR9UiB0k5ROV7GICV4kbgYfFh00oz7SaAYuggC8ZMUQPuACOn+V3g5Wmt4N4ByGCoD 1MOVxPfwesiXsdI0Y+ngKEMrp1N/u0ikuSEKl9SpMhQExQ0fwDQRwBXzaZK0IMoi66UU GchSh+Ra5VrvkEGqDE0twi3dBWDdvWSQzM0TSp5xlP9SW300QMCuX86qe75/H3WOSNcq VPlu9ySlv5ylawY8kgRLE9pOpdW549BJEHutOYv7X9nNZrpxjyPhnyx+yTY+McoZARo/ E6aA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=qnQD7VUU; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=AgokpDMTJ0/0TExcHY9dJs2E/jkvOdtlf+OZY4E/AWc=; b=sQ0mmgX2tNOK5wHYJa5Ka92VQgPaeLVT8lSd/0Baiam3G88BC2WTwx6BffmC0Eepnb 0D6ccq/zGY/eCUUBYHi9vfIIJ48hPPLRZg2VnCOOY2bW084LErRErz5NCGcAT2wz5ACF ODVnbXxebcvjI50lVM7eqBr/Q/lE0xm3lEvVcrCCbYbytB9WKSB/OT0Hhu92xiSoBH4S kyLiABsS57SgGsGeIQFs7fC4YWfBvQAfZJNGzwTiiqp4RcvZzE1z6oj0RyLe8cQRvSRp Kmpu6zglneu4sY/CtDDDHwio93ZPP5ae0jn33GKqHSVfW/gqoxDykI/k29943OHz98wd Hx/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=AgokpDMTJ0/0TExcHY9dJs2E/jkvOdtlf+OZY4E/AWc=; b=nYZqR3VyEeEKJJ7SveRuns/COHDDYTVn+M7qaDAAQp0Mf1Ci++6zbD5pLx6OC18bul ehrRPxd4stNdIPoQr4c611+3GeOPkr8fbp+fmi9lwFp6q6Yuzb2nFnX3WUeul5SKb5oa /wRcmmkfpAPk57MW6h2cplGgRgyC/3gNW4PwXbwnIRkI0a8r3A5y/BJ/PxCm4muLqdyF c/almn6Oi/uQMsFZxB9cH5wrS8Yg2t4HDIQbtjYeOaluHdft9L1Uv6vz/mbxy9qeHlfS TOH47G4ntf0+aMMiQfLmBJvqiA/K8OTCLgZcgsRK6k+H Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532MKvDQme/B6m6z0GRSf+KP+P2qrLXeHyaTKX7j5SDEdhEJcSh1 R7T8Zq2YXwMkfeGqCLgHxvY= X-Google-Smtp-Source: ABdhPJzOJefj9lLwVGcYkwD4SfnlnzaCrXMlzN09sxltYyndeCtcLFbtgx6WZpdDG8JgbJwUPUesZQ== X-Received: by 2002:a5d:4492:: with SMTP id j18mr19547155wrq.397.1637760344514; Wed, 24 Nov 2021 05:25:44 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:4f48:: with SMTP id m8ls217648wmq.0.experimental-gmail; Wed, 24 Nov 2021 05:25:40 -0800 (PST) X-Received: by 2002:a1c:8015:: with SMTP id b21mr14727541wmd.161.1637760340698; Wed, 24 Nov 2021 05:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637760340; cv=none; d=google.com; s=arc-20160816; b=dNY2qDihhR0kPc5UIK+ddzS4s84K+63Fcog280LcW2tznTUAVhPUk/v8BdJ6EG7hx/ M2DMbpJPXj3xJ8b214XAFUrg3r/s+Mxn+phDs11zjq/efvaoWLG9YAEuVplxrIp+n+CX SK+nx3VCazSJonk1IPDm1KmCWzcLUA5MHkU5viTsfVbG8GYkQYMV3lQ6K01MvTEMrPnC IuMyluOI6UuzSfSZJHc+CRvqBDAfFsX9ln37l5zEo/K4oUTm2ZG6cTpu0gr6WJCUHQeM UdSFaUVLo8w2YSdeSmbmsJbg7BotLRSDqn6CX8cfMojeFYA1XwJH2EO1z+dnA37cBgBQ iKCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=jxLMpRqhCTDDn/sd7qC0gc9gaALu1soE5G9eVF/3Py4=; b=PhlvIquIeI8ETGxTVGgC8ZrKOt8aamIg0CbSRqCl6FGDK5M3FybS5h3sO432lfpXP3 QCoI9pIGeu73H48HKjVH3AqyU/jRH8w+em2S+vnWctDNPwmdLlWo5k7XOHkBIn5/5uRK e+W2TaLa+M1zbafkWgAeslZ7tc1mvglDMZbXWluf3wo2Xqee6Cs3q5CeCQ9H/igExaEj rFxQ4vuKzryyKy/C0AvHycHl2vawc5YyU6feFpSpunPcCXY0FNFPq488F/Z0JCm3yUUn fm+I9Xw0l3ltHGxVM0PLQxOQKhBp4jXC95I3VoBBJR1cA+x/+DsYGe+j1QQrXweo0dxe 01YA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=qnQD7VUU; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id z3si323875wmi.2.2021.11.24.05.25.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 05:25:40 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 43DCF240027 for ; Wed, 24 Nov 2021 14:25:40 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Hzhb76Htnz6tmQ for ; Wed, 24 Nov 2021 14:25:39 +0100 (CET) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=qnQD7VUU; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29599 Archived-At: To concatenate them, simply write both on the command line: pandoc file1.md= file2.md -o file.html. All other tasks would really be easier to achieve i= f you write alternated divs in a single source file. Le Wednesday 24 November 2021 =C3=A0 01:03:40PM, Corentin Dupont a =C3=A9cr= it : > Thanks for the responses. I didn't know that you could express divs in > markdown. >=20 > But is there any way to really keep the files separated? Maybe the simple= st way > is to append the quizzes after the tutorials. >=20 > Another idea is to render the two files in two separate divs side by side= , and > keep the divs in sync. >=20 > I'm using Hugo to generate the webpages, so using hugo templating system = is > possible. >=20 >=20 > On Wed, Nov 24, 2021 at 12:12 PM Bastien DUMONT <[1]bastien.dumont@posteo= .net> > wrote: >=20 > You can write both in a single file while using divs to discriminate = beween > them: >=20 > ::: {.lesson} > Arduino > =3D=3D=3D=3D=3D=3D >=20 > An arduino is a microcontroller for developers. >=20 > Raspberry PI > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ... > ::: >=20 > ::: {.quizz} > Arduino is a: > - Microcontroller > - Mini-PC >=20 > Raspberry is : > - ... > ::: >=20 > Then you can write a filter that suppresses Divs with class "lesson" = and > another one that suppresses those with class "quizz". >=20 > Le Wednesday 24 November 2021 =C3=A0 11:58:48AM, Corentin Dupont a = =C3=A9crit : > > 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 > > =3D=3D=3D=3D=3D=3D > > > > An arduino is a microcontroller for developers. > > > > Raspberry PI > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > ... > > > > > > 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 rend= er 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, s= end an > email > > to [1][2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2][3]https://groups.googl= e.com/ > d/msgid/ > > pandoc-discuss/ > > CAEyhvmp-ZYFczz7BgERWp3BskyXn3ttXGZ%2BO3SC53jVhLF7iqA%[4]40mail.gma= il.com > . > > > > References: > > > > [1] mailto:[5]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2] [6]https://groups.google.com/d/msgid/pandoc-discuss/ > CAEyhvmp-ZYFczz7BgERWp3BskyXn3ttXGZ%2BO3SC53jVhLF7iqA%40mail.gmail.co= m? > utm_medium=3Demail&utm_source=3Dfooter >=20 > -- > You received this message because you are subscribed to the Google Gr= oups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, sen= d an > email to [7]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [8]https://groups.google.com= /d/ > msgid/pandoc-discuss/YZ4d1bz3N8ybLJlQ%40localhost. >=20 > -- > 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 [9]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [10]https://groups.google.com/d/= msgid/ > pandoc-discuss/ > CAEyhvmpq4_8MXUtUX4hE6cQqEjdjjRbuP4-GBtyTQe70Xu3jdQ%40mail.gmail.com. >=20 > References: >=20 > [1] mailto:bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org > [2] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [3] https://groups.google.com/d/msgid/ > [4] http://40mail.gmail.com/ > [5] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [6] https://groups.google.com/d/msgid/pandoc-discuss/CAEyhvmp-ZYFczz7BgER= Wp3BskyXn3ttXGZ%2BO3SC53jVhLF7iqA%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=3Dfooter > [7] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [8] https://groups.google.com/d/msgid/pandoc-discuss/YZ4d1bz3N8ybLJlQ%40l= ocalhost > [9] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [10] https://groups.google.com/d/msgid/pandoc-discuss/CAEyhvmpq4_8MXUtUX4= hE6cQqEjdjjRbuP4-GBtyTQe70Xu3jdQ%40mail.gmail.com?utm_medium=3Demail&utm_so= urce=3Dfooter --=20 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 e= mail 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/YZ49AaDj088nEmi5%40localhost.