fix: Setting bug

This commit is contained in:
Yaotian-Liu 2023-04-29 13:24:02 +08:00
parent 21d86e2ffc
commit e7a4897b82
No known key found for this signature in database
GPG key ID: FB9E38CC4C16D871

View file

@ -62,7 +62,7 @@ export default class PseudocodePlugin extends Plugin {
const preEl = blockDiv.createEl("pre", { cls: "code", text: source });
try {
pseudocode.renderElement(preEl, this.settings);
pseudocode.renderElement(preEl, this.settings.jsSettings);
} catch (error) {
console.log(error);
const errorSpan = blockDiv.createEl("span", { text: "\u274C " + error.message });