Finally, with some efforts, and lot of googling (tutorial, stackoverflow,
this mailling list) to find different pieces of explanation (i found the
documentation of pandoc / lua filters really hard for newcomers ...) ,i
found a solution to catch url from
generated by citeproc.
I'm interested by some feedback because my lua "skills" are really new :)
https://gist.github.com/reyman/12e31a533499790547179a2d40d7e021
Json Output and lib penlight to dump really help me to understand what
happen :
local pretty_dump = require"pl.pretty".dump
Best
Le vendredi 22 octobre 2021 à 23:26:28 UTC+2, sebastien rey-coyrehourcq a
écrit :
> Hi there,
>
> I'm a little lost in lua filters.
>
> If i want url and doi in my bibtex appearing in the AST Json #ref div i
> suppose the only way was to change default CSL. But after that, without
> regex ? is there a way to retrieve the url and the doi from elem? I said
> that because i need to push these information into my database after
> resolving.
>
> The workflow is :
>
> docs.md -> pandoc --citeproc docs.bib + lua filter -> save key/doi/url of
> citation into a database for another usage
>
> Best regards
>
>
>
--
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/0d5dfe75-c2e2-494d-9f86-caf29eba40fen%40googlegroups.com.