See https://github.com/kogmbh/WebODF/pull/308/files#diff-2bd92b530b7aed3dce22445ee4d42295L264. Already does both :)