Skip to content

Commit

Permalink
Refactor GeminiFile: Change content retrieval from innerHTML to textC…
Browse files Browse the repository at this point in the history
…ontent for improved text handling based on objections from the obsidian plugin acceptance bot.
  • Loading branch information
allenhutchison committed Nov 3, 2024
1 parent 3ee125b commit e3c772e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ export class GeminiFile {
);

// Get the inner HTML of the container element
const contentWithEmbeds = el.innerHTML;
const contentWithEmbeds = el.textContent;
return contentWithEmbeds;
} else {
return fileContent;
}
} catch (error) {
console.error("Error reading file:", error);
Expand Down

0 comments on commit e3c772e

Please sign in to comment.