feat(markup.ts) merge higharcs changes

This commit is contained in:
Jacob Nguyen
2022-03-03 22:16:16 -06:00
parent 9e17a80ca2
commit e4a88ff306

View File

@@ -7,7 +7,7 @@
TIME_LONG = 'T',
TIME_SHORT = 't'
}
export function trueSlice(text: string, limit?: number): string {
export function trueSlice(text: string, limit?: number): string
if (limit) {
return new TextDecoder().decode(
new TextEncoder().encode(text).slice(0, limit)
@@ -26,7 +26,7 @@
STRIKE: '~~',
UNDERLINE: '__'
};
export const Regexes = {
export const Regexes = {
[Strings.BOLD]: /\*\*/g,
[Strings.CODEBLOCK]: new RegExp(Strings.CODEBLOCK, 'g'),
[Strings.CODESTRING]: new RegExp(Strings.CODESTRING, 'g'),
@@ -559,3 +559,5 @@
return new this(raw).url();
}
}
{