File tree Expand file tree Collapse file tree
packages/markdown-core/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 markdownToIRWithMeta ,
99 type MarkdownLinkSpan ,
1010 type MarkdownIR ,
11- type MarkdownTableAlignment ,
1211 type MarkdownTableCell ,
1312 type MarkdownTableMeta ,
1413 renderMarkdownIRChunksWithinLimit ,
@@ -347,6 +346,8 @@ type TelegramHtmlTagSupport = {
347346 attrPatterns : ReadonlyMap < string , RegExp > ;
348347} ;
349348
349+ type TelegramTableAlignment = NonNullable < MarkdownTableMeta [ "aligns" ] > [ number ] ;
350+
350351const TELEGRAM_LEGACY_HTML_TAG_SUPPORT : TelegramHtmlTagSupport = {
351352 simpleTags : TELEGRAM_SIMPLE_HTML_TAGS ,
352353 attrPatterns : TELEGRAM_ATTR_HTML_TAG_PATTERNS ,
@@ -976,7 +977,7 @@ function renderTelegramRichHtmlTable(table: MarkdownTableMeta): string {
976977 const renderCell = (
977978 tag : "td" | "th" ,
978979 value : MarkdownTableCell | undefined ,
979- align : MarkdownTableAlignment | undefined ,
980+ align : TelegramTableAlignment | undefined ,
980981 ) => {
981982 const alignAttr = align ? ` align="${ align } "` : "" ;
982983 return `<${ tag } ${ alignAttr } >${ renderCellValue ( value ) } </${ tag } >` ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ function createStyleSpan(params: MarkdownStyleSpan): MarkdownStyleSpan {
7878 return span ;
7979}
8080
81- export type MarkdownTableAlignment = "left" | "center" | "right" ;
81+ type MarkdownTableAlignment = "left" | "center" | "right" ;
8282
8383export type MarkdownTableData = {
8484 headers : string [ ] ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ const defaultPublicDeprecatedExportsByEntrypointBudget = Object.freeze({
131131 "ssrf-policy" : 1 ,
132132 "ssrf-runtime" : 1 ,
133133 "media-runtime" : 2 ,
134- "text-runtime" : 190 ,
134+ "text-runtime" : 189 ,
135135 "agent-runtime" : 7 ,
136136 "plugin-runtime" : 13 ,
137137 "channel-secret-runtime" : 23 ,
@@ -202,11 +202,11 @@ let publicDeprecatedExportsByEntrypointBudget;
202202try {
203203 budgets = {
204204 publicEntrypoints : readBudgetEnv ( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_ENTRYPOINTS" , 322 ) ,
205- publicExports : readBudgetEnv ( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS" , 10383 ) ,
205+ publicExports : readBudgetEnv ( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_EXPORTS" , 10381 ) ,
206206 publicFunctionExports : readBudgetEnv ( "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_FUNCTION_EXPORTS" , 5210 ) ,
207207 publicDeprecatedExports : readBudgetEnv (
208208 "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_DEPRECATED_EXPORTS" ,
209- 3248 ,
209+ 3247 ,
210210 ) ,
211211 publicWildcardReexports : readBudgetEnv (
212212 "OPENCLAW_PLUGIN_SDK_MAX_PUBLIC_WILDCARD_REEXPORTS" ,
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ export {
2525 type MarkdownParseOptions ,
2626 type MarkdownStyle ,
2727 type MarkdownStyleSpan ,
28- type MarkdownTableAlignment ,
2928 type MarkdownTableCell ,
3029 type MarkdownTableMeta ,
3130} from "../../packages/markdown-core/src/ir.js" ;
You can’t perform that action at this time.
0 commit comments