I wrote an article that explains how to run system commands and display the results in Obsidian. With this technique you can pass text to commands and have them modify your content. For example formatting, extracting, rearranging, replacing, etc…
It’s very powerful, flexible, and may save you some tedious busy work when you’ve got lots of text to edit.