itd-api / RenderSpansOptions
Interface: RenderSpansOptions
Defined in: spans/render.ts:12
Properties
classPrefix?
ts
optional classPrefix?: string | null;Defined in: spans/render.ts:24
Префикс HTML-классов. По умолчанию itd; пустая строка или null отключает классы.
Например, app создаёт app-mention, app-hashtag, app-quote и app-spoiler.
format?
ts
optional format?: SpanRenderFormat;Defined in: spans/render.ts:14
Формат результата. По умолчанию html.
hashtagUrl?
ts
optional hashtagUrl?: (tag) => string | null | undefined;Defined in: spans/render.ts:18
Строит адрес хэштега. null или undefined отключает ссылку.
Parameters
tag
string
Returns
string | null | undefined
mentionUrl?
ts
optional mentionUrl?: (username) => string | null | undefined;Defined in: spans/render.ts:16
Строит адрес упоминания. null или undefined отключает ссылку.
Parameters
username
string
Returns
string | null | undefined