public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to use Lua filter to insert elements before title?
@ 2020-08-31 18:18 Norman Ramsey
       [not found] ` <f6a8164f-db8a-4c16-83a1-199dce28ab8en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Norman Ramsey @ 2020-08-31 18:18 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 978 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 1349 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to use Lua filter to insert elements before title?
       [not found] ` <f6a8164f-db8a-4c16-83a1-199dce28ab8en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-08-31 18:43   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2020-08-31 18:43 UTC (permalink / raw)
  To: Norman Ramsey, pandoc-discuss


Sure.  You can modify metadata using a lua filter.
So, just change the `include-before` metadata field
to include your navigation.

Norman Ramsey <fellswalker-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-31 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 18:18 How to use Lua filter to insert elements before title? Norman Ramsey
     [not found] ` <f6a8164f-db8a-4c16-83a1-199dce28ab8en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-31 18:43   ` John MacFarlane

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).