SH Syntax highlighting doesn't work in reading mode for sh

sh syntax highlighting only works in source mode:
image
image

Steps to reproduce

Just create a note with this:

export PATH=/usr/java/jdk/bin:$PATH
ls -l
ln -s

Expected result

The syntax highlighting should be the same for both source mode and reading mode.

Actual result

The syntax highlighting is present in source mode but absent reading mode.

Environment

  • Operating system: Linux MINT
  • Debug info:
    SYSTEM INFO:
    Obsidian version: v0.14.6
    Installer version: v0.13.31
    Operating system: #72~18.04.1-Ubuntu SMP Fri Jan 15 14:06:34 UTC 2021 5.4.0-64-generic
    Login status: not logged in
    Insider build toggle: off
    Live preview: off
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Safe mode: on

RECOMMENDATIONS:
none

1 Like

thanks

Any updates on this bug? As of 1.0.3 it’s still there.

No, the reader and editor use two different parsers. This won’t get fixed.