feat: wrap trems by <i> tag
This commit is contained in:
@@ -516,7 +516,7 @@ export class Translator {
|
||||
const re = new RegExp(term[0], "g");
|
||||
q = q.replace(re, (t) => {
|
||||
const text = `[${keeps.length}]`;
|
||||
keeps.push(term[1] || t);
|
||||
keeps.push(`<i class="kiss-trem">${term[1] || t}</i>`);
|
||||
return text;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user