From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32314 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Apply filter to beamer blocks Date: Fri, 10 Mar 2023 11:00:59 +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="14776"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB3U3VSQAMGQEFMVTKLI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Mar 10 12:01:06 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f61.google.com ([209.85.167.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1paaUk-0003fH-Ll for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 10 Mar 2023 12:01:06 +0100 Original-Received: by mail-lf1-f61.google.com with SMTP id p8-20020a056512234800b004dda0f69233sf1463003lfu.13 for ; Fri, 10 Mar 2023 03:01:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678446066; cv=pass; d=google.com; s=arc-20160816; b=rtANzuBLuPpcxKLZ8A2S/5x3Pj+oSgvDNgV2dsEhYuciXx9ULiuVYY84byGVtRUIXc Ax0XuUT2dW1lE7dGglNVrU7yVc3j1/DkuNFfxBDKjDd0PVm2xiEpKIUFqJBNIne2ampC wqmmYtBCtLj2fOSYAaQ4uXcGGuy/WBcu7iYUnjKGRTUd5xw97doZjhtavl67SQYXR2zz X8m5A9dP0ZjJDrnJ6QmvIAb0vBSxndpUeKTkO1mEwhQ/kD6QKgwDpmjqeNM89FzC+Fy+ 2MlpEi4itAa2MeVxwi5yWYxnAGjZZo61FvGJ4vTet3yQoTPctyak7TTEw6s3oup3sNgG UzzA== 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=52EZoaoUjeZ6cttcGqc+XWEEhpJrA/gu2BvTHpb0Hk0=; b=s+VTgBxHht540sO4kXBGwAp9o5DE4v2P7DBNp7CUrVpEfRAiDVytej+M7jKcyTSxbe IbFtW2N5DLc1xZK5HlI8jOqGl3i5j6JPRcHYgvFFSgSAXZtcWdYYFAndxM7kMZKXc5fP oUJfOUewdtHeiwdC0NPijihPwh7FEUbmnOMXoHW+JEcksLYNhb9+VItxNhRrgGSe5RWY 4nzSWwCVb7ZY4cM+LBeEs4xj4VA+JFQoUi9tQu/y/7on1IppXH7yNsPAIkCumMAKeieY klf2NQaueVnvEQrkigbceTNbhoxpVuO8UXPhkh59O85ipR9RHXmuWFPoAwAKL3YdYT3a kgFw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YvRKUZkk; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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; t=1678446066; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=52EZoaoUjeZ6cttcGqc+XWEEhpJrA/gu2BvTHpb0Hk0=; b=PPWoCX9A1+UVl3sV89ITIdt1Ka6LqdIrx0dtQ+ghq3tfWwFPRXjOkhb33aIjyjDY73 mYGZNdl7+Qp1izWOO/q1WC8jDX4W+YHrUNY4K5/7+eSqWO8lw2YddxeLf4g95XvBkGs1 PM/9RCjgR1nvULfzciihS02pfPKnRZdgDkWy9KWVoVIPUC3nDLUDUbAXIWFFsQv4cPQX cLv2fNI++Uh7CIDD97JQy9XrVm2OVI2pbWZVe94hz1EuUJaX9gX99+zt5JR1WCl4Uq9S X1XsyptBPEnq3krXb/xHIfh4czU+pWE X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678446066; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=52EZoaoUjeZ6cttcGqc+XWEEhpJrA/gu2BvTHpb0Hk0=; b=YuMk7IOzD7vu7XkFXBYuAcGqbZ/lqZEhoUxGcqPJGpBuZB+WNkIH7tbQlRJoECS1Sh T9AVBnyfayYw2YCe+cikBbYpMRtYC4w277rEgkXaYHMTtHhKlafaAO5m1EjTrcK54AYi 4nSfa9KAglSh8H6rYfeomKJBv9PBqYg/eA575zmqmgx25BJV2qXzyEGGBFme1PKIHDZy iQVGl+ThSghQ+wgHj66BpVdurKUvf4V137hJtmp0hgmfrcl0SbtE1eTSmlW2+YH8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKXnqD+eGQlFIgPoJSD9eDhjCGtxpi359NjXQ5bqZ5acEXaqEmc9 yPcJwX3Ow3v/j5ZzARr6CSE= X-Google-Smtp-Source: AK7set8wv9G2V2Yde84B4uuLamm6AITVLH7Vc4IEijM2Vir6GKO4s3oNExmUr0WMU1gUhRy0xMhEAQ== X-Received: by 2002:a2e:8e3a:0:b0:293:5fb9:3c10 with SMTP id r26-20020a2e8e3a000000b002935fb93c10mr7789605ljk.10.1678446066202; Fri, 10 Mar 2023 03:01:06 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:1510:b0:294:721f:ec38 with SMTP id e16-20020a05651c151000b00294721fec38ls816451ljf.7.-pod-prod-gmail; Fri, 10 Mar 2023 03:01:01 -0800 (PST) X-Received: by 2002:a2e:7a12:0:b0:298:7029:b795 with SMTP id v18-20020a2e7a12000000b002987029b795mr2466577ljc.34.1678446061406; Fri, 10 Mar 2023 03:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678446061; cv=none; d=google.com; s=arc-20160816; b=CmZOHKwXFz6O+eH0IX/nFqdWaDwICDJkpB6+fcLVzj6UAZL4eQr1wv90cmFFveCubn Yd1VMPsfLKd7H9pQfxd1z91Pfqk080s9IZmLY9F6sdOVecx9elfk3Z9mUnvm7pZpfC6z g8z7OCDBDmXgwskocTbwUeqfDMIclGndKdVX97gRSw2zSHdtUtRV+VXm+a6RO0NlxCE3 lvjlfTpBJWcp2dfcQKgPYNqJwt2CUq4iMCae5oeOMELtTcplDAE1oTzaXQhpvA+mw6PW uo1a0LXBo/O8nw1ZHfQL2iGn14IMdAFpjSBBA2PMhwoc70JkH1N1BZFuI9amiwS5bNFN ydLg== 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=4llTeeFwDmYBddv2EuDwm2lQ3fG04dr8S2iCq2o6SaQ=; b=qetf0ElNqCWbL8khZKc7B05eThZJr2HPxldznF7Q+ErZV8UcW44CqczUz9L8fZraFT LJmFG1jxBzZgSsB6G2Hf02MUt8aT+whdgRQE9EWpl2VU92VDiBKEo5fE8TLSuD/pMOGz CKY3iWxOKKlSffI5SJ8ui7i5ZNchR+hGoiBt3Iw5pDYwpiINDQvxFj5UINOElDsgsFbL h6mK7cW3vmgnjfZMyUoZ5fyNzZgyefYcWpw6HsvaxuJ9l3kQYNhfZJsebga19xi2T7Qd Aow+UpKwut6cZxRqVUD3QnvmnVcnw6njCcXD2Vysn7s7CSFcT7RLYOEmHsZmkmLWNUo6 MIUA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=YvRKUZkk; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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 mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id p21-20020a2e9a95000000b002934e1689b9si90274lji.0.2023.03.10.03.01.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 03:01:01 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BA53B24064F for ; Fri, 10 Mar 2023 12:01:00 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PY34r0m53z6tnN for ; Fri, 10 Mar 2023 12:01:00 +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=YvRKUZkk; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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:32314 Archived-At: If you set the --slide-level option on the command line, you will be able t= o match the headers that are below this level, i.e. those that will be rend= ered as block headings. Example below: ``` BLOCK_LEVEL =3D PANDOC_WRITER_OPTIONS.slide_level - 1 function Header(header) if header.level >=3D BLOCK_LEVEL then print('**********\nIt works!\n**********\n') end end ``` Le Friday 10 March 2023 =C3=A0 02:24:31AM, Bruno Grenet a =C3=A9crit : > Dear all, >=20 > My question is a rewrite of a previous question of mine (https:// > groups.google.com/g/pandoc-discuss/c/wg3UIgI7G8I/m/V8GoGf9ACwAJ), with le= ss > convoluted explanation. >=20 > For conversion from markdown to beamer, is there a(n easy...) way to defi= ne a > lua filter that applies to headers that will become beamer blocks? >=20 > The goal is to be able for instance to add classes and attributes to the = header > becoming beamer blocks to control the display. A few examples include thi= ngs > like "width =3D XX%", or ".centered" for the inside text to be centered, = etc. Of > course, there are other ways to achieve such results, but the source file > become kind of ugly. >=20 >=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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/e9bfa616-059a-4df7-9d92-d462ea6f3ed0n%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/e9bfa616-059a-4df7-9= d92-d462ea6f3ed0n%40googlegroups.com?utm_medium=3Demail&utm_source=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/ZAsN61oTsAgxb3t2%40localhost.