nekoshita/obsidian-auto-card-link

Allow indenting code block containing card

Closed this issue · 1 comments

rben01 commented

Obsidian’s has pretty weak support for indented code blocks, i.e., code blocks where the whole thing — the triple backticks and the lines between them — is indented. So there isn't really a way to get it to understand a code block has been written indented, but that its contents should be rendered as if they weren't.

Unfortunately this affects this plugin because when trying to create an indented cardlink code block, the yaml parsing of the contained properties fails due to the whitespace.

It would be great if a smart algorithm were used, where leading whitespace were stripped off of properties before attempting to read them.

Closed by #39