I know nothing about libre but in MS Word there's the office api you can use to send MD to an API, there's nothing similar? It's great to be able to read/write directly in MD.