markdown styling changes in progress

This commit is contained in:
Danny Avila 2023-03-22 16:31:57 -04:00
parent 8f58c95452
commit 68979015c1
5 changed files with 48 additions and 4 deletions

View file

@ -1,8 +1,15 @@
const cleanUpPrimaryKeyValue = (value) => {
// For Bing convoId handling
return value.replace(/--/g, '-');
};
function replaceSup(text) {
if (!text.includes('<sup>')) return text;
const replacedText = text.replace(/<sup>/g, '^').replace(/\s+<\/sup>/g, '^');
return replacedText;
}
module.exports = {
cleanUpPrimaryKeyValue,
}
replaceSup
};