public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Complete sample writer using 3.0 syntax
@ 2023-05-24  0:22 H
       [not found] ` <036dd5f8-667a-2b2f-9eaa-76c29718cd55-FcZObrvlYduBUy7/sJONFg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: H @ 2023-05-24  0:22 UTC (permalink / raw)
  To: Pandoc Mailing List

As a newcomer to pandoc I could greatly benefit from a /complete/ sample custom writer using the 3.0 syntax as I am muddling my way through learning it.

Googling finds a lot of code fragments using the old AST syntax which is now deprecated. The github repository referenced on the pandoc website has a lot of old syntax code but no code using the new syntax. Further, the github page has a warning that the site should no longer be used.

Where can I find a complete lua writer using the new syntax? Does not need to be a sophisticated writer, perhaps just making some customization of HTML output as such just to get the feet wet.

-- 
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/036dd5f8-667a-2b2f-9eaa-76c29718cd55%40meddatainc.com.


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

* Re: Complete sample writer using 3.0 syntax
       [not found] ` <036dd5f8-667a-2b2f-9eaa-76c29718cd55-FcZObrvlYduBUy7/sJONFg@public.gmane.org>
@ 2023-05-24  1:01   ` John MacFarlane
       [not found]     ` <EB4E4875-E1E0-48F7-9379-20FEF966E944-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2023-05-24  1:01 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 1824 bytes --]

Here’s a pretty complete example:

https://github.com/jgm/djot.lua/blob/main/djot-writer.lua <https://github.com/jgm/djot.lua/blob/main/djot-writer.lua>

This is a pretty full-featured one, even using doclayout for indentation and wrapping.

> On May 23, 2023, at 5:22 PM, H <agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org> wrote:
> 
> As a newcomer to pandoc I could greatly benefit from a /complete/ sample custom writer using the 3.0 syntax as I am muddling my way through learning it.
> 
> Googling finds a lot of code fragments using the old AST syntax which is now deprecated. The github repository referenced on the pandoc website has a lot of old syntax code but no code using the new syntax. Further, the github page has a warning that the site should no longer be used.
> 
> Where can I find a complete lua writer using the new syntax? Does not need to be a sophisticated writer, perhaps just making some customization of HTML output as such just to get the feet wet.
> 
> -- 
> 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/036dd5f8-667a-2b2f-9eaa-76c29718cd55%40meddatainc.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/EB4E4875-E1E0-48F7-9379-20FEF966E944%40gmail.com.

[-- Attachment #2: Type: text/html, Size: 3010 bytes --]

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

* Re: Complete sample writer using 3.0 syntax
       [not found]     ` <EB4E4875-E1E0-48F7-9379-20FEF966E944-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2023-05-24 16:31       ` H
  0 siblings, 0 replies; 3+ messages in thread
From: H @ 2023-05-24 16:31 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On May 23, 2023 9:01:35 PM EDT, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>Here’s a pretty complete example:
>
>https://github.com/jgm/djot.lua/blob/main/djot-writer.lua
><https://github.com/jgm/djot.lua/blob/main/djot-writer.lua>
>
>This is a pretty full-featured one, even using doclayout for
>indentation and wrapping.
>
>> On May 23, 2023, at 5:22 PM, H <agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org> wrote:
>> 
>> As a newcomer to pandoc I could greatly benefit from a /complete/
>sample custom writer using the 3.0 syntax as I am muddling my way
>through learning it.
>> 
>> Googling finds a lot of code fragments using the old AST syntax which
>is now deprecated. The github repository referenced on the pandoc
>website has a lot of old syntax code but no code using the new syntax.
>Further, the github page has a warning that the site should no longer
>be used.
>> 
>> Where can I find a complete lua writer using the new syntax? Does not
>need to be a sophisticated writer, perhaps just making some
>customization of HTML output as such just to get the feet wet.
>> 
>> -- 
>> 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/036dd5f8-667a-2b2f-9eaa-76c29718cd55%40meddatainc.com.

Thank you! I will review and experiment. If anyone has another good sample program using the 3.0 syntax, please advise.

-- 
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/30FCEC55-041B-42C7-97F6-5BD47AC7CCBA%40meddatainc.com.


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

end of thread, other threads:[~2023-05-24 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-24  0:22 Complete sample writer using 3.0 syntax H
     [not found] ` <036dd5f8-667a-2b2f-9eaa-76c29718cd55-FcZObrvlYduBUy7/sJONFg@public.gmane.org>
2023-05-24  1:01   ` John MacFarlane
     [not found]     ` <EB4E4875-E1E0-48F7-9379-20FEF966E944-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-05-24 16:31       ` H

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