You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a processed codeblock (dataviewjs, js-engine, ...) sits right at the top of a file with no character above it (except newlines), it won't get rendered on reading mode even though the DOM gets populated by whatever the codeblock produces
To Reproduce
Open the Sandbox vault
Install Shiki Highlighter and any other plugin that register a MarkdownPostProcessor (JS Engine for example)
Create a new empty file and paste a simple codeblock that render something
```js-engine
return 1
```
Switch to reading mode
Expected behavior
You can see a 1
Actual behavior
Nothing is visible
Tested on
Linux
Android
iPadOS
Additional context
Placing a pair of %% with a character inside, or any other character above the code block, will make it behave as expected.
It looks like the culprit code is here. The rule should be more specific
The text was updated successfully, but these errors were encountered:
Describe the bug
When a processed codeblock (dataviewjs, js-engine, ...) sits right at the top of a file with no character above it (except newlines), it won't get rendered on reading mode even though the DOM gets populated by whatever the codeblock produces
To Reproduce
Shiki Highlighter
and any other plugin that register aMarkdownPostProcessor
(JS Engine
for example)Expected behavior
You can see a
1
Actual behavior
Nothing is visible
Tested on
Additional context
The text was updated successfully, but these errors were encountered: