dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4.09k stars 866 forks source link

Generated HTML should be valid XML (XHTML) #10187

Closed icnocop closed 2 months ago

filzrev commented 2 months ago

Currently docfx output HTML files that based on HTML Living Standard(HTML5) So I thought default HTMLPostProcessor behaviors should not be changed with following reasons.


What's about adding custom XHtmlPostProcessor and specify custom postprocessor with docfx.json?

"build": { 
  "postProcessors": ["XHtmlPostProcessor"]
}
icnocop commented 2 months ago

Thank you @filzrev ! It worked and added the code for the solution to https://github.com/dotnet/docfx/issues/10191