Is there a way to force an SVG to force paths to be a polygon primitive? Paths currently have an issue rendering in the software I need them, and since I don't need any features a path would afford me I'd like them all to be polygons.
I am aware illustrator does this by default, but once a line has a curve in it it is marked as a path and will never be exported as a polygon despite not having any curves, and being a closed contiguous shape. I would like a way to
The path in question below only uses a single M and multiple Line To(L)/Horizontal Line To(H) in its pathdata, so there are no bezier curves to justify it being a path.
https://betravis.github.io/shape-tools/path-to-polygon/ is a solution but I'd like something I can do automate or at the very least do locally for quality of life reasons.
Converting the points to corners with the direct selection tool will NOT work, the line will still be exported as a path.