How to programmatically execute Visual Markdown Editor-specific commands?

Via RStudio API, it is possible to run programmatically some RStudio IDE commands from this list that work in Visual Markdown Editor (VME) too, e.g.,

rstudioapi::executeCommand("insertChunk")

Unfortunately, not all VME-related commands are present in the list. So how can one programmatically run Visual Markdown Editor-specific commands, e.g., insert part heading (H1), insert inline math ($a + b$), etc., in RStudio?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.