Separator line after a table turns the last row of the table to a heading

This only applies to Live Preview.

Steps to reproduce

Create a separator (divider) immediately after a table.

| header    | header    |
| --------- | --------- |
| content a | content b |
---

Expected result

According to Common mark setext header:

A setext header consists of a line of text, containing at least one non-space character, with no more than 3 spaces indentation, followed by a setext header underline. The line of text must be one that, were it not followed by the setext header underline, would be interpreted as part of a paragraph

A table row is not a paragraph, therefore it should not turn into a heading if a separator line is immediately below the table. This is the behavior of Reading Mode, but not Live Preview.

Actual result

Before inserting the separator line (no bug):

after inserting the separator line:

Environment

SYSTEM INFO:
Obsidian version: v1.10.6
Installer version: v1.9.14
Operating system: Windows 11 Pro 10.0.26100
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: light
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Note: using *** instead of --- is a workaround that behaves correctly even in Live Preview.