Add alert kinds, minor tweaks, bump version

This commit is contained in:
Jon Staab
2025-06-30 10:52:03 -07:00
parent 1d6bd887ba
commit c54225380e
18 changed files with 42 additions and 31 deletions
+2 -4
View File
@@ -55,12 +55,10 @@ export type RenderOptions = {
createElement: (tag: string) => any
}
const createElement = (tag: string) => document.createElement(tag) as any
export const textRenderOptions = {
newline: "\n",
entityBase: "",
createElement,
createElement: (tag: string) => document.createElement(tag) as any,
renderLink: (href: string, display: string) => href,
renderEntity: (entity: string) => entity.slice(0, 16) + "…",
}
@@ -68,7 +66,7 @@ export const textRenderOptions = {
export const htmlRenderOptions = {
newline: "\n",
entityBase: "https://njump.me/",
createElement,
createElement: (tag: string) => document.createElement(tag) as any,
renderLink(href: string, display: string) {
const element = this.createElement("a")