Dax language on the code block only format when in reading mode

Steps to reproduce

create a code block and set the language to dax
paste "
var leade = kommo[id]
var pipe = kommo[pipelineid]
return
COALESCE(
COALESCE(
CALCULATE(
MAX(kommo_fact_events[lead_order_statuses_after]),
ALL(kommo_fact_events), ALL(kommo_fact_leads)
"
then turn on live-preview and reading mode.
the colors only appear on reading mode

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

Y

Expected result

the colors appearing on live-preview, like the other languages

Actual result

the colors only appear on reading mode

Environment

SYSTEM INFO:
Obsidian version: v1.4.14
Installer version: v1.4.13
Operating system: Windows 10 Pro 10.0.19045
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Not a bug. The parsers for reading and editor are different.

could it be implemented in the editor parser, like the other languages?

We don’t implement it. It’s what we get from upstream. But you can open a FR.

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