The history is a bit convoluted. Let me see if I can help untangle it:

- In 2006, Niklas Frykholm created `markdown.lua` [1], a regex-based
  Markdown parser written in Lua.

- In 2009, John MacFarlane, the founder of Pandoc, created Lunamark [2],
  an LPEG-based Markdown parser that was ca three orders of magnitude
  faster than `markdown.lua`. Around 2011, there is a bunch of commits
  with speed optimizations by Hans.

- In 2016, I created the Markdown Package for TeX [3] as a fork of
  Lunamark [3]. Initially, I would contribute fixes upstream and take
  them downstream. In 2023, there was a significant rewrite to support
  the CommonMark standard [4], which makes our code base largely
  incompatible with Lunamark. We are actively developed with monthly
  releases.

  Confusingly, the Markdown Package for TeX contains a file titled
  `markdown.lua` even though there is no relation to Niklas Frykholm's
  code.

 [1]: http://www.frykholm.se/files/markdown.lua
 [2]: https://github.com/jgm/lunamark
 [3]: https://github.com/witiko/markdown
 [4]: https://spec.commonmark.org/

I hope this clears things up.

Best,
Vitek

On Mon, Nov 11, 2024 at 01:27:18PM +0100, Hans Hagen wrote:
> On 11/11/2024 12:56 PM, Henning Hraban Ramm wrote:
> > Am 11.11.24 um 12:17 schrieb Vítek Starý Novotný:
> > > For OPTeX, we recommend using `markdown.lua` directly. I wonder if that
> > > approach might also be the most appropriate option for ConTeXt.
> > 
> > I though ConTeXt had a markdown module, but that refers to your https://
> > ctan.org/pkg/markdown, oops.
> 
> at some point there was a third party markdown lua module and that was dead
> slow so i redid that in lpeg and fed it back; it probably is arround
> somehwere but i have no clue how markdown evolved (can't keep track of
> everything), if there was need i could look into it
> 
> Hans
> 
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> _______________________________________________
> dev-context mailing list -- dev-context@ntg.nl
> To unsubscribe send an email to dev-context-le...@ntg.nl

Attachment: signature.asc
Description: PGP signature

_______________________________________________
dev-context mailing list -- dev-context@ntg.nl
To unsubscribe send an email to dev-context-le...@ntg.nl

Reply via email to