This commit is contained in:
yoannchb-pro
2023-03-24 13:41:53 -04:00
parent ddffedc570
commit 868e4bcbde
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -141,7 +141,7 @@
let question = questionContainer.textContent;
if (config.table) {
//make table more readable for chat-gpt
const tables = questionContainer.querySelectorAll("table");
const tables = questionContainer.querySelectorAll(".qtext table");
for (const table of tables) {
question = question.replace(table.textContent, htmlTableToString(table));
}
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -13,7 +13,8 @@ function normalizeQuestion(config: Config, questionContainer: HTMLElement) {
if (config.table) {
//make table more readable for chat-gpt
const tables = questionContainer.querySelectorAll("table");
const tables: NodeListOf<HTMLTableElement> =
questionContainer.querySelectorAll(".qtext table");
for (const table of tables) {
question = question.replace(table.textContent, htmlTableToString(table));
}