Steps to reproduce
- Create a new note
- Add code block with the type set to
hcl
, example:
``hcl
resource "google_storage_bucket" "bucket" {
name = var.name
project = var.project_id
location = var.location
uniform_bucket_level_access = true
}
``
Note: Removed a ` to let the markdown render properly.
- View the note in Live Preview mode.
Did you follow the troubleshooting guide? [Y/N]
Yes
Tested in Sandbox vault and still occurs.
Expected result
The hcl
block looking like Reading Mode:
Actual result
It does not look like Reading Mode when in Live Preview:
Environment
SYSTEM INFO:
Obsidian version: v1.8.4
Installer version: v1.7.7
Operating system: Windows 10 Enterprise 10.0.19045
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
Screenshots under the Expected / Actual section.
Used a java
block as a reference to indicate that it appears hcl
is not behaving as expected.