Skip to content

Codeblock fails when used inside a canvas card  #13

@Krakor92

Description

@Krakor92

When used inside a canvas card, js-engine code blocks fail to render. It seems that the problem lies here

Within a .canvas file, the ctx.sourcePath property sent by the MarkdownCodeBlockProcessor callback is equal to an empty string. Thus, your getExecutionFile returns undefined as expected and the call to getFileCache fails since it expects a TFile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions