1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Doc: Add Joplin Server Business to plans and add page about it (#12694)

This commit is contained in:
Laurent Cozic
2025-07-10 20:48:56 +01:00
committed by GitHub
parent c3575672b2
commit 8b4ad0aaf7
11 changed files with 300 additions and 32 deletions

View File

@@ -16,6 +16,7 @@ export enum MarkdownTableJustify {
export interface MarkdownTableHeader {
name: string;
label: string;
labelUrl?: string;
filter?: (content: string)=> string;
disableEscape?: boolean;
disableHtmlEscape?: boolean;
@@ -159,7 +160,11 @@ const markdownUtils = {
const lineMd = [];
for (let i = 0; i < headers.length; i++) {
const h = headers[i];
headersMd.push(stringPadding(h.label, minCellWidth, ' ', stringPadding.RIGHT));
let label = h.label;
if (h.labelUrl) {
label = `[${h.label}](${h.labelUrl})`;
}
headersMd.push(stringPadding(label, minCellWidth, ' ', stringPadding.RIGHT));
const justify = h.justify ? h.justify : MarkdownTableJustify.Left;