Expanding a collapsed code block line loses classes after restart

Steps to reproduce

  1. Create a note and place the following code snippet in the note.
```python
if x:
	if y:
		func()
	else:
		another_func()
```
  1. Collapse the second code line if y:.
  2. Restart Obsidian.
  3. Expand the second line.

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

Y

Expected result

The expanded code line should have proper syntax highlighting.

Actual result

Syntax highlighting for the expanded code line is gone.

In more technical words, it lost the CSS classes as it only has class cm-line instead of classes HyperMD-codeblock HyperMD-codeblock-bg cm-line.

Environment

SYSTEM INFO:
	Obsidian version: v1.5.8
	Installer version: v1.5.8
	Operating system: Windows 10 Pro 10.0.19043
	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: 2
	Plugins enabled: 0

RECOMMENDATIONS:
	none

Additional information

Tested in Ubuntu and Windows.

expanded code block syntax highlight bug