mokeyish / obsidian-code-emitter

An obsidian plugin that allows code blocks executed interactively in sandbox like jupyter notebooks. Supported language rust、kotlin、python、Javascript、TypeScript etc.
GNU General Public License v3.0
258 stars 12 forks source link

In JS and TS, an extra `<div class="log-info"></div>` is output during runtime. #89

Closed TaiYouWeb closed 1 month ago

TaiYouWeb commented 1 month ago
console.log('Hello,World!');

=>

&lt;div class="log-info"&gt;Hello,World!&lt;/div&gt;
TaiYouWeb commented 1 month ago

@mokeyish

The issue has not been completely resolved.

let i = 0; 
const incrementI= () => { i++; console.log(i); }
while(i<3){ incrementI(); }

output:

&lt;div class="log-info"&gt;1&lt;/div&gt;
2
&lt;div class="log-info"&gt;3&lt;/div&gt;

or

1
&lt;div class="log-info"&gt;2&lt;/div&gt;
3
mokeyish commented 1 month ago

It will take time to fix. Can you fix it? Since your name has "web", this should be fixable, right?