twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.06k stars 67 forks source link

Fix/codeblock context #272

Closed mayurankv closed 10 months ago

mayurankv commented 1 year ago

Currently the run-* codeblocks don't work with a codeblock customisation plugin I'm working on.

This pull request fixes the run-* language codeblocks being passed with no render context path in main.ts. This means the any postProcessors won't have a context sourcepath to use. It should pass back the existing context sourcepath _ctx.sourcePath.

twibiral commented 10 months ago

Looks great, thank you!