Describe the bug
Inline code highlighting setting: Enabled
Inline code that uses Shiki Highlighter syntax (e.g. `{js} const x = 1`) is not highlighted in Live Preview (edit mode) on Android, even with the inline code option enabled in the plugin settings and without any custom CSS applied.
Highlighting works correctly in Reading Mode.
In Live Preview, highlighting only appears under very specific and unreliable circunstances — for example, after editing and saving an Obsidian CSS snippet from an external editor, which seems to trigger an unintended re-render of the plugin.
Expected behavior
Inline code with Shiki language tags should be tokenized and highlighted consistently in Live Preview, the same way it is in Reading Mode.
Actual behavior
In Live Preview, Shiki does not process inline code. No syntax-colored <span> elements are injected into the DOM, so there is nothing for CSS to style. The code appears as plain, unstyled text.
Steps to reproduce
- Install Shiki Highlighter and enable the inline code option in its settings.
- Open any note in Live Preview mode on an Android device with inline code block that uses Shiki Highlighter syntax (e.g.
{js} const x = 1.
- Observe that no syntax highlighting is applied.
- Switch to Reading Mode — highlighting appears correctly.
Occurs on
Plugin version
0.7.7
Describe the bug
Inline code highlighting setting: Enabled
Inline code that uses Shiki Highlighter syntax (e.g.
`{js} const x = 1`) is not highlighted in Live Preview (edit mode) on Android, even with the inline code option enabled in the plugin settings and without any custom CSS applied.Highlighting works correctly in Reading Mode.
In Live Preview, highlighting only appears under very specific and unreliable circunstances — for example, after editing and saving an Obsidian CSS snippet from an external editor, which seems to trigger an unintended re-render of the plugin.
Expected behavior
Inline code with Shiki language tags should be tokenized and highlighted consistently in Live Preview, the same way it is in Reading Mode.
Actual behavior
In Live Preview, Shiki does not process inline code. No syntax-colored
<span>elements are injected into the DOM, so there is nothing for CSS to style. The code appears as plain, unstyled text.Steps to reproduce
{js} const x = 1.Occurs on
Plugin version
0.7.7