We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fcd2bc commit 32f94ecCopy full SHA for 32f94ec
src/BlockRenderer.ts
@@ -140,7 +140,7 @@ export class BlockRenderer {
140
const props = db.pages[0].properties;
141
142
const table: any[][] = [];
143
-
+
144
const headers = Array.from(props.keys.keys());
145
table[0] = headers;
146
@@ -203,7 +203,11 @@ export class BlockRenderer {
203
}
204
205
206
-function escapeTableCell(content: string): string {
+function escapeTableCell(content: string | number | any): string {
207
// markdown table cells do not support newlines, however we can insert <br> elements instead
208
- return content.replace(/\n/g, "<br>");
+ if (typeof content === "string") {
209
+ return content.replace(/\n/g, "<br>");
210
+ }
211
212
+ return content.toString();
213
0 commit comments