mirror of
https://github.com/talwrii/plugin-repl.git
synced 2026-07-22 11:40:27 +00:00
feat() Show in code blocks
This commit is contained in:
parent
0d2326880d
commit
b160ee17ee
1 changed files with 6 additions and 1 deletions
7
main.ts
7
main.ts
|
|
@ -453,5 +453,10 @@ function replRequire(vaultPath: string, name: string) {
|
|||
|
||||
|
||||
function renderCodeBlock(plugin: ReplPlugin, source: string, el: HTMLElement, ctx: MarkdownPostProcessorContext) {
|
||||
plugin.runInCodeBlock(el, source)
|
||||
try {
|
||||
plugin.runInCodeBlock(el, source)
|
||||
} catch (e) {
|
||||
el.appendText(e.message)
|
||||
el.appendText(e.stack)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue