Adding table directly below another table fails in specific cases

Testing version: 1.0 (415)

What were you doing: Inserting a table directly below another table while some text was selected. Situation before action:

What feature did you use: Add Table.

What happened: The previous table disappeared and was replaced by Markdown source code. Situation after action:

What did you expect to happen: This:

Here’s the source code of the example before I added a table while afa was selected:

# Table Test

| a   | b   | 1   |
|-----|-----|-----|
| c   | d   | 1   |
afa