public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* How to make writeNative include metadata?
@ 2023-01-03 21:22 Amy de Buitléir
       [not found] ` <ab602db1-e8d7-4bd5-b077-0f454edc6e3fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Amy de Buitléir @ 2023-01-03 21:22 UTC (permalink / raw)
  To: pandoc-discuss


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

The command `pandoc myfile --to=native --standalone` produces output that 
includes the metadata.

My program needs to sereialise and deserialise Pandoc documents. I assume 
could use the native file for this. However, the output produced 
by`Text.Pandoc.Writers.writeNative` does not include metadata. I don't see 
a "standalone" option or anything similar in `WriterOptions`.

*Is there a way to make `writeNative` include the metadata?*

-- 
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/ab602db1-e8d7-4bd5-b077-0f454edc6e3fn%40googlegroups.com.

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

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

* Re: How to make writeNative include metadata?
       [not found] ` <ab602db1-e8d7-4bd5-b077-0f454edc6e3fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-01-03 22:02   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2023-01-03 22:02 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

You need to set `writerTemplate` to `Just “”`.
We removed the old `writerStandalone` on grounds that it is redundant with `writerTemplate`.  Of course, this is a bit odd for formats like native that don’t have templates, but in that case as long as `writerTemplate` is a Just value it will consider it standalone.

> On Jan 3, 2023, at 1:22 PM, Amy de Buitléir <amy-x92Y4IBCQKU6Cx7ujrKbww@public.gmane.org> wrote:
> 
> The command `pandoc myfile --to=native --standalone` produces output that includes the metadata.
> 
> My program needs to sereialise and deserialise Pandoc documents. I assume could use the native file for this. However, the output produced by`Text.Pandoc.Writers.writeNative` does not include metadata. I don't see a "standalone" option or anything similar in `WriterOptions`.
> 
> Is there a way to make `writeNative` include the metadata?
> 
> 
> -- 
> 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/ab602db1-e8d7-4bd5-b077-0f454edc6e3fn%40googlegroups.com.

-- 
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/FC6C8CCA-59EE-43BF-82C7-582EEFCE2F6A%40gmail.com.


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

end of thread, other threads:[~2023-01-03 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03 21:22 How to make writeNative include metadata? Amy de Buitléir
     [not found] ` <ab602db1-e8d7-4bd5-b077-0f454edc6e3fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-01-03 22:02   ` 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).