obsidian-execute-code icon indicating copy to clipboard operation
obsidian-execute-code copied to clipboard

Bug when using line numbering

Open Saunak626 opened this issue 3 years ago • 3 comments

When I use the line number display function of codemirror options, the python code cannot run. However, when using the code block enhancer plugin to display line numbers, I did not encounter the problem of inability to run.

However, this plugin sometimes conflicts with code block enhancer. When starting obsidian, it fails to start, and no run button appears. Sometimes restarting ob or reloading the plugin can solve this problem.

Saunak626 avatar Apr 25 '22 12:04 Saunak626

Would it be possible to get line numbering as an optional setting for this plugin? There are other plugins out there but they often cause incompatibilities with other codeblock plugins so having it built-in would prevent further issues like this. (Also there's currently no good solutions :( )

mayurankv avatar Oct 27 '22 20:10 mayurankv

When I use the line number display function of codemirror options, the python code cannot run.

Are you using the Live Preview mode? What version of Obsidian are you on? Thanks! :)

chlohal avatar Oct 28 '22 17:10 chlohal

I'm on version v1.0.3 with plugin version v1.3.0 and codemirror options v0.9.5. I'm currently using Reading mode when running code (waiting to be rid of run- prefixes before running in Live Preview hopefully).

mayurankv avatar Nov 01 '22 12:11 mayurankv