public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* RFC: compiling lpeg into pandoc
@ 2021-11-01 13:38 Albert Krewinkel
       [not found] ` <87ee806loe.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Albert Krewinkel @ 2021-11-01 13:38 UTC (permalink / raw)
  To: pandoc-discuss

Hi all,

I'd like to request views and opinions on the inclusion of a Lua library
into pandoc: the LPeg library is a small parsing library written in C to
be used with Lua. http://www.inf.puc-rio.br/~roberto/lpeg/

The motivation is that this library could be used to extend pandoc to
deal with new formats. A good example is jgm's "lunamark", which could
be modified to support custom syntax extensions that might otherwise be
difficult to implement with current filters.
https://github.com/jgm/lunamark/blob/master/lunamark/reader/markdown.lua

On the other hand, this is yet another library and could be considered
bloat. Most users, esp. on Mac and Linux, should not find it too
difficult to install the library on their system should they need it.

The question is therefore if you think whether including lpeg into
pandoc would make is worth it; e.g., do you believe you'd write such
LPeg-based parsers? Would you share them with people who wouldn't
immediately know how to install the library themselves?

Thanks in advance,
Albert


PS: The corresponding pull request is
    https://github.com/jgm/pandoc/pull/7649

--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


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

end of thread, other threads:[~2021-11-08 15:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 13:38 RFC: compiling lpeg into pandoc Albert Krewinkel
     [not found] ` <87ee806loe.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2021-11-01 22:06   ` AW: " denis.maier-NSENcxR/0n0
     [not found]     ` <83dbc2c6dcbe49e49e00dac40b73eb65-NSENcxR/0n0@public.gmane.org>
2021-11-02 11:44       ` denis.maier-NSENcxR/0n0
     [not found]         ` <ec915ee445b6471fb1f252d98a727e3d-NSENcxR/0n0@public.gmane.org>
2021-11-02 11:52           ` Albert Krewinkel
     [not found]             ` <878ry67p0o.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2021-11-02 12:38               ` BPJ
2021-11-02 13:28               ` AW: " denis.maier-NSENcxR/0n0
     [not found]                 ` <a4454aeb346b404ba248ee962bacd7cd-NSENcxR/0n0@public.gmane.org>
2021-11-02 13:37                   ` BPJ
     [not found]                     ` <CADAJKhD=XdoUF6cg06uNqdGRXW1tdOzidv82=m84n9gSHR-LjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-03  9:41                       ` krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2021-11-01 23:14   ` RFC: " BPJ
2021-11-08 15:38   ` Albert Krewinkel

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