zspitz / PandocFilters

Pandoc filters in .NET
Other
1 stars 1 forks source link

Pandoc is unsuccessful in reading some files in the test folder #11

Open zspitz opened 3 years ago

zspitz commented 3 years ago

[WARNING] Could not deduce format from file extension .custom Defaulting to markdown

[WARNING] Unexpected XML element code in section

[WARNING] Unexpected XML element cite in cite
[WARNING] Unexpected XML element cite in cite
[WARNING] Unexpected XML element emphasis in section
[WARNING] Unexpected XML element strong in section

[WARNING] Duplicate identifier 'foobar' at chunk line 3 column 1

zspitz commented 3 years ago

This is a good place to start, by seeing exactly which extensions are supported, and what input types they map to.

Next step would be to look at the list of supported inputs, and exclude those extensions which map to an unsupported input format. https://pandoc.org/MANUAL.html#option--from.

zspitz commented 3 years ago

I've implemented the above -- certain files are excluded based on extension, while I provide the input format for some extensions which Pandoc doesn't handle automatically.