Cannot write html tags (<u>, <sub>, <sup> etc) in table headers

Steps to reproduce

  1. insert a table in live preview (command Insert table)
  2. navigate to a header cell
  3. paste this text: <ol><li>test</

Did you follow the troubleshooting guide? [Y/N] yes

Expected result

Text <ol><li>test</ should appear inside the header cell so that html lists could be written manually i.e.

<ol><li>Coffee</li><li>Tea</li><li>Milk</li></ol>

The above code works inside header cells if directly copied and pasted. Also non-header cells doesn’t cause the issue.

Actual result

The original table becomes unrecognised in live preview
image

Environment

SYSTEM INFO:
Obsidian version: v1.6.5
Installer version: v1.6.5
Operating system: Darwin Kernel Version 23.5.0: Wed May 1 20:19:05 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8112 23.5.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

I use the CSS code below to disable emphasis in header row so that in my Obsidian markdown tables don’t have headers by default. However my issue is not only restricted to writing html lists inside table headers: for example typing <u>test</u produces the issue as well.

/* table header weigth in reading mode */
.markdown-preview-view {
  --table-header-weight: normal; /* bold/normal */
}

/* table header weigth in live preview */
.markdown-source-view {
  --table-header-weight: normal; /* bold/normal */
}