Requested feature
OpenXML doesn't offer an explicit way to identify code (blocks). But we could use some detection rules, e.g. the combination of:
- Style name lowercase includes "code"
- Paragraph uses monospaced fonts (is there already a checker somewhere in the code base?)
What do you think?
If that's of interest, I could prepare a PR. I guess the right place would be MsWordDocumentBackend._handle_text_elements?
Requested feature
OpenXML doesn't offer an explicit way to identify code (blocks). But we could use some detection rules, e.g. the combination of:
What do you think?
If that's of interest, I could prepare a PR. I guess the right place would be MsWordDocumentBackend._handle_text_elements?