DCsunset / pandoc-include

A pandoc filter to allow file and header inclusion
MIT License
63 stars 14 forks source link

Non english characters are not processed correctly #4

Closed ikalogic closed 4 years ago

ikalogic commented 5 years ago

If I have these spanish words in my main *.md file: Descripción del producto It gets correctly converted to PDF.

However, if these same words are included and hence processed by the pandoc-include filter, I get this result in the PDF:

Descripción del producto

As you can see, that special "o" character got messed up. Any idea how to prevent this?

If this can work, it will save me a lot of time!

Thanks!

ikalogic commented 5 years ago

The workaround i have found for the moment is to html'escpae the text in the included *.md files. it's works, but the modified files are barely readable...

DCsunset commented 5 years ago

It seems a bug of this filter. I may try to fix it later, and it may take some time.

ikalogic commented 5 years ago

Thank you very much, as I said, there is workaround, so it's not urgent :)

DCsunset commented 5 years ago

I tried it myself, but couldn't reproduce the problem. Could you provide a simple example and your options to compile?

mario45211 commented 4 years ago

Same problem for me. @DCsunset - to reproduce, try to use some language specific character in file to include and then try to include its to root file.

DCsunset commented 4 years ago

Fix this issue in v0.4.1 thanks to @mario45211 .