-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External listings #2116
Comments
If you are only targeting LaTeX you can simply use the LaTeX command in If you are targeting multiple formats it shouldn't be too difficult to ````{.include}
path/to/some.JSON
|
+1 ... but for output other than LaTeX/PDF |
+1 |
We'll be able to handle this kind of thing better with architectural changes now under way in the typeclass branch (pandoc 2.0). |
Sorry about this. But how to use this feature in my markdown syntax if I want pandoc to render code from file. |
Allow external listings in latex, for example
\lstinputlisting{"file.js"}
pandoc should open the files and read their contents, if the target format doesn't support linking or if external listings are not enabled and then process as usual listing. If it supports, it should link existing files, if corresponding CLI argument is set.
In the case of HTML it is possible to highlight using JS.
The text was updated successfully, but these errors were encountered: