From 6e7d239297bdcde667cf063dce842e22ffc61108 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Thu, 16 May 2024 17:20:28 +0200 Subject: [PATCH] vault backup: 2024-05-16 17:20:28 --- build.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.js b/build.js index c05076ed..8c059f04 100644 --- a/build.js +++ b/build.js @@ -180,7 +180,7 @@ function renderEdge(edge) { function renderNode(node) { const strockWidth = 4 - const fontWeight = 'bold' + const fontWeight = 'normal' const fontFamily = 'Roboto, Oxygen, Ubuntu, Cantarell, sans-serif' let textOffsetX = 15 @@ -198,6 +198,12 @@ function renderNode(node) { textOffsetY = 0 } + // Format bold + if (node['text'].includes('**')) { + node['text'] = node['text'].replaceAll('**', ''); + fontWeight = 'bold'; + } + content = `