No syntax highlight on wiki code block in live preview mode

Steps to reproduce

  1. Create a wiki markup language code block, e.g.
```wiki
== Heading 2 ==
'''bold'''
```
  1. See that it doesn’t have syntax highlight in live preview mode.

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

Yes, tested in sandbox vault.

Expected result

To see wiki code with syntax highlight, as it’s supported by Prism.js.

Actual result

No syntax highlight.

Environment (of sandbox)

SYSTEM INFO:
Obsidian version: v1.7.4
Installer version: v1.5.3
Operating system: Windows 10 Enterprise 10.0.19045
Login status: not logged in
Language: en
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

screenshot of live edit mode in sandbox vault:
image


In my main vault, when I checked out the same code block in reading mode, I got the following dataview error; not sure if it’s relevant to the issue, or something else caused by plugin conflict (it doesn’t show up in the sandbox vault) :

Dataview (inline field '= Heading 2 ==
'''bold''''): Error: 
-- PARSING FAILED --------------------------------------------------

> 1 | = Heading 2 ==
    | ^
  2 | '''bold'''

Expected one of the following: 

'(', 'null', boolean, date, duration, file link, list ('[1, 2, 3]'), negated field, number, object ('{ a: 1, b: 2 }'), string, variable

This is not a bug. The editor uses a different highlighter.

So the live preview mode doesn’t support wiki markup language highlight yet? I can open a feature request then instead.

Yes you can open a feature request. Thanks

1 Like

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