1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-28 09:24:37 +02:00

refactor(gh): tweak workflow

This commit is contained in:
syuilo
2026-07-17 17:58:09 +09:00
parent 227268fa1b
commit 65bcca04be
3 changed files with 9 additions and 13 deletions

View File

@@ -98,6 +98,10 @@ export function escapeLatex(text: string) {
.replaceAll('%', '\\%');
}
export function escapeMdTableCell(value: string) {
return String(value).replaceAll('|', '\\|').replaceAll('\n', '<br>');
}
export function formatColoredDelta(delta: number, text: (value: number) => string, colorThreshold = 0) {
if (delta === 0) return text(0);
const sign = delta > 0 ? '+' : '-';