A command to "Convert a multi-line paragraph to table"

Use case or problem

When I have a multi-line paragraph, sometimes I want to convert it to a table, with each line corresponding to a row.

Proposed solution

Add a command, converting the selected paragraph into a table, with each line corresponding to a row.
Or we could just modify the behavior of the current command “insert table”, there shouldn’t be any conflict.

For example, convert this:
image
To this
image

Other ideas

  • Also add a “un-table” command, which does the opposite thing.
  • Split paragraph into columns by recognizing comma/spaces/other characters as divider.

Current workaround (optional)

Manually copy paste.

Related feature requests (optional)

A solution using CyberChef:

https://github.com/gchq/CyberChef