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:
4
.github/scripts/utility.mts
vendored
4
.github/scripts/utility.mts
vendored
@@ -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 ? '+' : '-';
|
||||
|
||||
Reference in New Issue
Block a user