From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30607 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Front Matter from md to html Date: Wed, 25 May 2022 07:46:29 +0000 Message-ID: References: <78E2A0F6-02FD-43AD-8F09-03B3441CBFF8@mro.name> 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="31845"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBWN5W6KAMGQEZ2ZFXXY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 25 09:46:38 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f187.google.com ([209.85.208.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ntlj3-00088C-S9 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 25 May 2022 09:46:37 +0200 Original-Received: by mail-lj1-f187.google.com with SMTP id h14-20020a2eb0ee000000b00253ca8c5c87sf4196110ljl.9 for ; Wed, 25 May 2022 00:46:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653464797; cv=pass; d=google.com; s=arc-20160816; b=R/kdWGe0YmOylY3DCTFH30WSR8IUTituw7MXWpKkXXSceaBxyS0hl5QFJbQxW0yYQD 2Vs5BipApjUJFkfu0rUsh3xtGkd6Q8I3ql8C2hjdyB2ImfqZapxvqScmVcxGI62MLLke 5aU3njDK1fLLXdJA2NN67kMkKNLhQxhf65VJthHpJzYMS5q6DWSZ2kwD5+TlUA+X7pZx oM5mgxQsw1NVnALMkMB+0eyWTt27oNnvFzHJMBMMjol71EdcDoF4JL34ueO6DjcZd/tu 2kP4q/LwHZkSnsKD2ezQ1qoFo8oNjQLVG4AalZxeflXQ4koKCNoiXEsJjKUJrm6wzPrl 742A== 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=Fs8x+5HGwX/bimu8Oz88CAxEOgl8rkoZw/dVqjxw2K0=; b=vP+HCUnB+vD4NLsFB1aKQewzmdEFMoGINKY73IDAw2aXtoHau1rQ6kooGQYdzRcsK1 qFyK1edRZXF/0jKh3+AXXNbPzSa1S8XCeJab6WEClD9ZOARxlvr43S/wHVivNrGJzAlr BnofpAf3V0Lj8aq+WnA8TaZAEcfeoEKZKQ/cEoXhpK6gz/NAmRa4QP511B+u81V2ufng 87ofUlae4zC2KmUZRGcxwY2mdwkCGuiezuEPpGS2lguinBy+JwoCPPhvUpIoF9s3hntT nr+dPyI/Wvp8xRCEOYFGRPeWIaFB5M8pjT3Q1y5EF1n3eqxRJjFALEmm7n8cb2db6w/x 7/xg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HN7M2rNr; 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=Fs8x+5HGwX/bimu8Oz88CAxEOgl8rkoZw/dVqjxw2K0=; b=Ql5txkKU8oWYqY5GqSJ37wI9pLe//Y7+qytCzqNMvbqO6AiJkIb2DRK4PirSeHTekW KOodjJ01S/N0v67GGHzO0OtEDy7BAujiaT5RukCGNxVUq8/6MaU0UMtIbJv6LPjm/0L5 +aI+xz+ZG7nqFsCQ25gDxlxTm8Ew2i2XBU8jwQVORscBIfoBBYt5W0duJoOv15xR9uBC jVJUxle8g1FgdChr7Er0L+Ynm49W2dVse2GJheUV129oWsS5Bhkc3AwX5izjA/1rBQOU w8bvDxSzCal9E/IJtodvustrmEMppBM//zZQMDh+HdVQY5EVfrzJqsS5zOuTwiS8t01Z 2oaQ== 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=Fs8x+5HGwX/bimu8Oz88CAxEOgl8rkoZw/dVqjxw2K0=; b=7LYL3hIOEImsJks9kXRcFViwY5BtPK90GBj3NWAUlI0ryMTRmVjJMryJYP6mg2mekB nnwGPKmNc72jd68z35y1+/3zMSUCvs2MN3WQ/E7UrauGJDIO5wvfPeO0K6NthCu1j6/m Rg9cuF1//QUYnypBl8ihZG0Gv+XoAM6LGrtf2n5ALXonY96hFSD8waLUIc7j4mKLPqhD Steh42H6cewYdfxNaYqlNcnt41Y6Ny9s8IVfUe5rO4MiwDl7OyPtYdnnxHjB3VGdmfMu YuWZN9TM4Ls0uvXLRlNkWt+ejgl/0Fb8daL+bqNqNc20 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530dKYMrAUyu9J7fVs+HTLvr2QTy8gGGq3WFJUmhQhLvTuSQ+K/c Tkr5HrGA8lPtDGG2/IhaO7E= X-Google-Smtp-Source: ABdhPJwgrk9agg1kIZPqB6l0udRX81e8YaSCSIACUaUSQPz9u1LGqHi6RoufDAG2EtEN7C8XWNusfQ== X-Received: by 2002:ac2:4e12:0:b0:478:840a:4812 with SMTP id e18-20020ac24e12000000b00478840a4812mr6263849lfr.65.1653464797136; Wed, 25 May 2022 00:46:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3f16:b0:449:f5bf:6f6a with SMTP id y22-20020a0565123f1600b00449f5bf6f6als3176070lfa.2.gmail; Wed, 25 May 2022 00:46:32 -0700 (PDT) X-Received: by 2002:a05:6512:1693:b0:474:35c:8c11 with SMTP id bu19-20020a056512169300b00474035c8c11mr21582402lfb.19.1653464792382; Wed, 25 May 2022 00:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653464792; cv=none; d=google.com; s=arc-20160816; b=kuvch6wkIF0GWSgQhlMaM4498K9upZL4htVaiHeCxXzLbw/rfzy/OmHA+BC2LmbVYM kLG5+0qOEeMy4jjfBhzkHMNSigiWk7fdc4XoXoQZadQo8B7+YUjFAWe8QZ2TP+0P3Vn/ BSgGnykxxYyYuy4Tkr2SdHY38FFYtcp+t1NGdCWL8sqxnW8sPJ8Q6q31L1f0KKba0flL TejAbThZi0BQIu6gw7QGOLIQm/+jBkDFLff7euRBPsMfcFwf/xF5Vh9CITV3yLm/KChY +3UgsMeOWXpzyPwUnaRS011vyswtxZN5Zf/l9V0ab6ScGQC59DsMnSp32ujWLL1im7hQ VJ1Q== 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=ENddmZ01Zt+ebnEE2mQSUd7esNVR4XMaREw0SCpVhA4=; b=dDsCZN0Kzkbh18I5Q8iEKfs8k60TXuy/SZfU+GIPuM02XedEunhj0G4qzcwzj98oTU qBqVxymedicbb7Dzfd0d6YCMAIL6Mo0ZSSjt9zJisi06KxW3MH+EAbxMm7yMN+aPresd qPLUsRpZ0Pz8ffq7/sJFJBT0FG5x8Uo33lR+HIMn2Yjmnxv28Wz4L84U3sF6hd423vn+ DLh8z8lsNXZ5QiZCD/PfWGD+ZlZwhftr8wWiWCbSK/5+A+KD8l+Z74N980ZpWYIY8d+O 7/9kPTAqvWCwFOZUPtSBIv8kFib3sOuyw7xICvxe2DGhx06RCFOMlSt3NkTO9k5XQV4H EwmA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HN7M2rNr; 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 q23-20020a2e9697000000b002499fdca3e4si596910lji.3.2022.05.25.00.46.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 00:46:32 -0700 (PDT) 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 [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9B0DA240026 for ; Wed, 25 May 2022 09:46:31 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L7NRq1g8Qz6tmJ for ; Wed, 25 May 2022 09:46:31 +0200 (CEST) Content-Disposition: inline In-Reply-To: <78E2A0F6-02FD-43AD-8F09-03B3441CBFF8-cOhbpZe5kZ8@public.gmane.org> 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=HN7M2rNr; 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:30607 Archived-At: Is there a reason you don't use the YAML header for that? ``` --- keywords: - first - second --- Content ``` Then you can add to your template (copied from the default template): ``` $if(keywords)$ $endif$ ``` Le Wednesday 25 May 2022 =C3=A0 09:13:20AM, Marcus Rohrmoser a =C3=A9crit : > I have pandoc generating the html body for https://mro.name/wiki and woul= d > like to transfer some front matter to the head. >=20 > How would one extract front-matter from md and turn into e.g. name=3D"keywords" =E2=80=A6>? >=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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/78E2A0F6-02FD-43AD-8F09-03B3441CBFF8%40mro.name. --=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/Yo3e1RpzbXF6u3cp%40localhost.