Improved the LibreOffice compatibility by removing certain elements that were causing issues