Skip to content
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

Filename's underscore gets escaped? #45

Closed
aubertc opened this issue Feb 26, 2024 · 2 comments
Closed

Filename's underscore gets escaped? #45

aubertc opened this issue Feb 26, 2024 · 2 comments

Comments

@aubertc
Copy link
Contributor

aubertc commented Feb 26, 2024

This problem may be too niche to be investigated here, but I thought it could be useful to mention it in case other have the same issue.

When I compile this website on-line (using github's action), then the name of the files see their "_" being escaped, which breaks the inclusion.

  • What I write: !include code/overflow_example.cs

  • Where the file is: code/overflow_example.cs

  • What github's action says:

     [WARNING] Included file not found: code/overflow\_example.cs
    

As a side note, if I get rid of the underscore but use quotes, that is, if I write!include "code/overflowExample.cs" (using quotes, as indicated at https://github.com/DCsunset/pandoc-include?tab=readme-ov-file#syntax), then the quotes themselves get modified and I get

[WARNING] Included file not found: “code/overflowExample.cs”

I discuss this issue further here: csci-1301/csci-1301.github.io#155 (comment) . I am writing that this issue may be too niche because I din't see it when I compile this source code locally on my machine (even though github's action uses the exact same version of pandoc and of pandoc-include than I do, the most recent at the time of writing this issue in both cases).

@DCsunset
Copy link
Owner

DCsunset commented Feb 29, 2024

The way pandoc-include handles such escaping is that it will convert it to plain text when processing the corresponding line. It's weird that it doesn't work in GitHub actions.

I guess the most possible reason is that some of the dependencies are different or some of the paths are not set correctly. Maybe you can print more info (e.g. dependencies, paths) in the GitHub action to debug it.

@aubertc
Copy link
Contributor Author

aubertc commented Mar 1, 2024

Ok, thanks a lot for getting back to me. Feel free to close this issue, anyone interested in this problem will receive updates through csci-1301/csci-1301.github.io#155 (comment) .

@DCsunset DCsunset closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants