From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26025 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: How to use Lua filter to insert elements before title? Date: Mon, 31 Aug 2020 11:43:02 -0700 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30087"; mail-complaints-to="usenet@ciao.gmane.io" To: Norman Ramsey , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBQ4JWX5AKGQEDADDEUY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 31 20:43:20 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f185.google.com ([209.85.210.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kColz-0007jS-Lm for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 31 Aug 2020 20:43:19 +0200 Original-Received: by mail-pf1-f185.google.com with SMTP id f5sf1210063pfe.2 for ; Mon, 31 Aug 2020 11:43:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598899398; cv=pass; d=google.com; s=arc-20160816; b=vfTqDUjI2WbThNtLiij6oXwHg/6FFbrYUMNL+8Ewx/huWQzL92rkNdXBqNreiGLeTk zisNLmynTPIK8z41lbNgi3Ht1Ht6xBlQ5iokvHsJpb5TMX8GUm1+k3AIWJTde8cQ9mAT YevBs8DTwm8g7WaOQgrAPJg/9kyd7jawpQv2qXrfiTePq5WZjSuVLcUxxolnlaT7YqCu YV381m+FHz5UsFmabw41q6Frgr0ennX7THPI9VA1Fdi+ADwCX48Jk5G6waK+li8KUfST 39Klm/Xzwhc0zxxnGplnMJ2JLB9B4bflHYMXUvqec3cbCoC0zjwaQVNyYa2EYzO1+MGb fsrg== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=+jiEfI7FbXA0Pp1MyNRgvLM2ZJAQX0VhxoaarOB257Y=; b=ntNZ/l00Puoedkzb5CMvBHFp4wswJLIsQT6tswVn/aUQnL8dZjOp3zlHVRGsN/HFif 7nDJ0AynmgxcbKDT1E8fW6QT1WHZof8EpJqMQSNx/TP1ARk5imonBWQosQ1F2SHBEtEu SC8cEAiA9O1iCkMDDlUck50emPdVwlCK0p7u0i0vJLTwG7M0+fXfN7Ej6MKtOc2QC7tc Qr8fXaFED5R8/h1KBFXwnmIatSAodzI7Zpjp1ayKwOFPaDDVbMWU1G0meOpHThWeEHZ0 nPs6y3vSjwcJacZLVsdaZqgk92GFFvmvg9xRMIlqzD4bp+V2e3Dpo1Eplg5NVRckkrfy PPag== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="uaz2Ne/+"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=+jiEfI7FbXA0Pp1MyNRgvLM2ZJAQX0VhxoaarOB257Y=; b=Y2GRyyF7g0/a93geklDrQhQnkqvE2YJAVZKP/UJNHrIuefAH6NQ9AnRvETyMyiNWMD EF/8mGxAWlwP75GmnLLCwjLozRe+KR9/RWi1rTFauIxFfeC8UIaNtZu5EFDLUJ8B1L+u /RK4tdgvPT9GDlBHWG2ddOMdeL4ABDdde8lfvaNvO0OywFM9ObTE+0jw4Yvtlzrn2Nvt tmsHJyY8oNL3oyYn1XWr2RTK/ykwDExl6aUzGgqq1WYkyStWWuySVtSleIK/rOCeC5W2 izwH8GkmLL7sgSvMzeXefU0I3OwHbbelMMaq5qol8gWMTRsnrUaCFPWQXRJQGQng/gCP As7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=+jiEfI7FbXA0Pp1MyNRgvLM2ZJAQX0VhxoaarOB257Y=; b=NvimvE2OVOIV/XXW7JpOcGCLnXtgMm79nKIugtPLY1jmop5tR5/aOSWvyy0gqBga5b AJ6k2GdK6xkf7jwbxe0ABS44jvamcV/XLP8ym7prY0k358GTvzx0perOICkh/ssyaX0H axJG//HjsH9nGx/SzQNNN/K2XneSrmGLPrCzc3pucUkqvpTFEcIJERj4W8DjwLQ9rOp3 BAWSC6cW9lUl9WhVbN1j+08qR1n1TyELv4JXb92Wy8JgwYbjOhloNVboMhTESjxzysFh iVuKD2gFCe0cMeeR0w98cO26Dimlla1XFfeR71by4SDwQprtrDdxf5dyFPdt18ae2DP3 9vtw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531NLnRet1TxBiEtvdUdBI3F8RzBz01IBPlgyQJG/YS0kNfdbg+U +npRI0jj4qSlvuE5GcTRPLs= X-Google-Smtp-Source: ABdhPJyTti5ZFwVjr0qETT9qilBAw4dfvev27HHyindpcylUGdm9qBbIY1ef79YLZqeYdDhaumkPxQ== X-Received: by 2002:a17:902:9f96:: with SMTP id g22mr2038099plq.13.1598899398406; Mon, 31 Aug 2020 11:43:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90b:358b:: with SMTP id mm11ls186729pjb.2.gmail; Mon, 31 Aug 2020 11:43:15 -0700 (PDT) X-Received: by 2002:a17:90b:1098:: with SMTP id gj24mr632900pjb.55.1598899395397; Mon, 31 Aug 2020 11:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598899395; cv=none; d=google.com; s=arc-20160816; b=lvWTCAogWT69NENOOz751a6ntd/+N2UphSgtgpLrdCYqk8PhkTs4bV5mJxlqgoWpy0 rSVH/vv/B9dSYwSpCFgl73Yl3crfbfrqyfimNL2+f10l64buW+xPadYUaeTBchuhYX7h KCpcNc/AgP/fWCNBpyzpijp0k1wK7omae/T6Wduy4iTZMv74Uw/oGd3RaJzXkgOTmO6y vlGJbUG51kWpdVOmWoFlndXWR0lQUFH2QheMU5U1XXNKUudvRDWa7sqUUe1CYsGtfEMp ISDCNiOmgDBlO0dM6lRCu40Y2N03QxMDqcZBX++6JmGTD9xRksSNola9iEyFSNvhX8J3 nS6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=NOFXZS+EsEMq9FG2v11MmXE+Ytg1+ljEdk7uZiVP9W0=; b=zjsO6ogkO0tHH0fjKgbJoIE+qjrBBqb1o14SYqaobitA3qbQPUotoPgztdPxQIeKhk WSZirjBmg05R7ah4LglOaw6RqusOZSH2BpwMg614HoUB8RBDvfoF/MgjkcszyuVYUgoA avEnbvMI9/o7bjR6hDFTZlI+7H993xZFLSngvwOKGk8CQRd7DNpjvgo2loUr1KzyK+TK DF/jAP0MqiI3F7ee78+PjtAkyw+Mi+sJnJ0CZKMGR9ioR/Jb5w8jRFIFhWn3miNLFPrZ VZpy3TdmHtsRoYy834BKLhW3NKWnUeBeZjgF0NJozAiB8mrnLR6GyA1qmMEm5fyxCDrv CCXA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="uaz2Ne/+"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com. [2607:f8b0:4864:20::533]) by gmr-mx.google.com with ESMTPS id v62si307234pgv.0.2020.08.31.11.43.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 11:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) client-ip=2607:f8b0:4864:20::533; Original-Received: by mail-pg1-x533.google.com with SMTP id i10so1127090pgk.1 for ; Mon, 31 Aug 2020 11:43:15 -0700 (PDT) X-Received: by 2002:a65:670d:: with SMTP id u13mr2240486pgf.280.1598899394780; Mon, 31 Aug 2020 11:43:14 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id i62sm5726968pfe.140.2020.08.31.11.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 11:43:14 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 36749A2A1; Mon, 31 Aug 2020 14:43:03 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b="uaz2Ne/+"; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::533 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:26025 Archived-At: Sure. You can modify metadata using a lua filter. So, just change the `include-before` metadata field to include your navigation. Norman Ramsey writes: > I'm using a Lua filter to construct a navigation bar, which I'd like to > have appear as the very first thing on a standalone HTML page. However, > looking at `pandoc -D html`, it appears that the metadata title is inserted > before anything in the body that I build using the Lua filter. So my > navigation bar doesn't show up until after the page title, which is not the > result I was hoping for. > > Is there a way for me to alter the `include-before` list from within a Lua > filter? Or is there some other approach I should be taking to this problem? > > > Norman Ramsey > > -- > 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/f6a8164f-db8a-4c16-83a1-199dce28ab8en%40googlegroups.com.