Incorrect TOML syntax highlighting for string keys

Steps to reproduce

Add the following snippet as a code block with toml formatting.

[table]
"key1" = 1
"key2" = 2

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

Yes.

Expected result

Both "key1" and "key2" should have the same syntax highlighting color.

Actual result

toml-syntax-color

Environment

SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.4.13
Operating system: Darwin Kernel Version 23.0.0: Fri Sep 15 14:43:05 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6020 23.0.0
Login status: logged in
Catalyst license: insider
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Editing (Source mode and Live Preview) and Reading views use different syntax highlighting.

Live Preview mode doesn’t support PrismJS and may render syntax highlighting differently.

https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Code+blocks


This is the source:

```toml
[table]
"key1" = 1
"key2" = 2
```

A screenshot from Reading view in the Sandbox vault:

1 Like

Then I guess I second Use PrismJS in Live Preview instead. :slight_smile:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.