owickstrom / pandoc-include-code

A Pandoc filter for including code from source files
Mozilla Public License 2.0
141 stars 17 forks source link

Could this include code from a git repository? #49

Open takusuman opened 7 months ago

takusuman commented 7 months ago

G'day to all the contributors on this project!

I would like to ask if this could generate code blocks from a remote git repository --- more specifically, from GitHub itself --- like GitHub already does when mentioning lines on an issue. I have "scanned" the README, but, at a first glance, I couldn't find anything about a git repository.

Much obliged in advance.

aubertc commented 7 months ago

This has not been implemented yet.

I know that pandonc can load pictures ( https://github.com/jgm/pandoc/issues/750 ) and documents ( https://pandoc.org/MANUAL.html#reading-from-the-web ) from the internet, so I guess it's possible technically.

On 4/10/24 17:52, Luiz Antônio wrote:

G'day to all the contributors on this project!

I would like to ask if this could generate code blocks from a remote git repository --- more specifically, from GitHub itself --- like GitHub already does when mentioning lines on an issue. I have "scanned" the README, but, at a first glance, I couldn't find anything about a git repository.

Much obliged in advance.

— Reply to this email directly, view it on GitHub https://github.com/owickstrom/pandoc-include-code/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5UGAOESTOHNTXZ5UFFJTTY4WYCBAVCNFSM6AAAAABGBGJQ3SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTMNBYHA4DQOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Clément Aubert, Assistant Professor of Computer Science, School of Computer and Cyber Sciences, Augusta University, https://spots.augusta.edu/caubert/

takusuman commented 7 months ago

I know that pandonc can load pictures (jgm/pandoc#750) and documents from the internet, so I guess it's possible technically.

What if we tried to get the git repository instead of a file folder and "parse it" into this module using some sort of "libgit"? That's an interesting idea and I'm willing to aid on it as much as my time permits.