mirror of
https://github.com/lukasbach/obsidian-code-files.git
synced 2026-07-22 07:40:30 +00:00
chore: linter fix
This commit is contained in:
parent
be6e813c39
commit
70771ebbe0
1 changed files with 5 additions and 1 deletions
|
|
@ -79,7 +79,11 @@ export class FenceEditContext {
|
|||
}
|
||||
|
||||
const content = editorContent.slice(0, editorContent.length - 1);
|
||||
const langKey = this.editor.getLine(this.start).slice(3).trim().split(" ")[0];
|
||||
const langKey = this.editor
|
||||
.getLine(this.start)
|
||||
.slice(3)
|
||||
.trim()
|
||||
.split(" ")[0];
|
||||
const language = getLanguage(langKey);
|
||||
|
||||
return { content, language };
|
||||
|
|
|
|||
Loading…
Reference in a new issue