I format layouts (HTML files) with the help of Apply-PnPProvisioningTemplate.
Template file excerpt attached here.
After the application, get "Warning and Errors" in Design Manager -> Edit Section Layout.
When you click on "Warnings and errors", the message "The master page of the presentation of this page has been modified, which will cause inconsistencies on your site." Click here to update the sections of your presentation that represent the regions from the master page. "
Clicking on the section solve the problem and change the status as "Successful Conversion"
I want to automate these steps. After applying templates with the help of Apply-PnPProvisioningTemplate, I should get the status "Successful Conversion".