owickstrom / pandoc-include-code

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

Support for pandoc 2.10+ #32

Closed LaurentRDC closed 4 years ago

LaurentRDC commented 4 years ago

Hello,

This is a very small change that adds support for pandoc 2.10+. Fixes #30.

Laurent

P.S. If you need to use pandoc-include-code with pandoc 2.10 right now, and you are using stack, you can add the dependency as follows:

extra-deps:
- git: https://github.com/LaurentRDC/pandoc-include-code.git
  commit: 162ae92edc80601bde8450bf933c0127e8c2b53a
LaurentRDC commented 4 years ago

Unfortunately, it appears impossible to support all versions of pandoc with the same version of pandoc-types. E.g. pandoc 2.8-2.9 used pandoc-types 1.20, but pandoc-types 1.21 brought an API change (new table format).

aubertc commented 4 years ago

Unfortunately, it appears impossible to support all versions of pandoc with the same version of pandoc-types.

I think that this is correct. But you can always refer to previous versions of the filter for the users not using the latest version of pandoc(-types).

I'm afraid that the only way around.

LaurentRDC commented 4 years ago

This is tangentially related, but I've put forward a proposal to ensure backward and forward compatibility of pandoc filters. You can participate in the discussion here.

owickstrom commented 4 years ago

Thanks!

owickstrom commented 4 years ago

I've added you both as collaborators, hope that's OK?

aubertc commented 4 years ago

Thanks!